Re: Copy Pathname Script?

From: mayayana (mayaXXyana1a_at_mindYYspring.com)
Date: 01/07/05


Date: Fri, 07 Jan 2005 14:37:39 GMT


  You can create a menu item for any file in the
following key:

HKCR\*\shell\PastePath\

  Default value to show on right-click menu:
"Send Path To Clipboard"

HKCR\*\shell\PastePath\Command\
default value: YourProgramPath %1

[The above is the method used to add
"Open with Notepad" for all files. The
HKCR\*\shell part is required. The "PastePath"
key name can have any name you like, but
it's default value should be the menu text.

%1 runs the program specified. So any program
that checks for command line arguments when
it starts up can handle this approach. ]

You can do the same for folders under
the HKCR\folder\shell\ or HKCR\directory\shell\
key.

  Once you have the menu, the path will be sent
to the specified program and the program can
then send the path to the Clipboard. I'm not sure
whether that will work for a script. It may work
if you use: wscript.exe scriptpath %1
or you may need to have an EXE to do it.

--
_____________________________
mayayXXana1a@mindYYspring.com
For return email remove XX and YY.
_____________________________
Mad Ad <com@comcomcom.com> wrote in message
news:8QtDd.185$7D2.144@newsfe6-gui.ntli.net...
> There seems to be several small utilities out there that add a right-click
> context menu entry to windows allowing you to dump the full path of
whatever
> you have right-clicked to the clipboard.  Has anyone heard of that?  Would
> that be within the capabilities of a simple wsh script? Im assuming its
> quite simple to do because there are a few of them out there.
>
> Now I'm someone not very experienced at scripting so please don't shoot me
> if I'm asking the wrong thing, just ive got an idea for something that
> perhaps I could adapt using that function, if I knew it as a script.
> Something I could make sense of and tinker with as I learn how to bolt on
> the bits I want to add, just I don't know if its open source or a
> programming example somewhere and I'm hoping someone here knows what I'm
> going on about :)
>
> Thanks for any help
>
> Ad
>
>


Relevant Pages

  • Re: Dragonfly macro/script recorder
    ... and sending the script to the clipboard... ... no movement at start of script records correctly. ... bool AfterFirstUpstroke=false; ... {//UNUSEABLE KEYBOARD MESSAGE ...
    (comp.lang.beta)
  • Re: Copying objects to clipboard
    ... Some months ago I posted a script to c.l.t which uses TWAPI to do that sort ... that the filename will be pure ASCII, you can use this script as is, like ... # There can be several types data in the clipboard so we have to ... If the filename isn't ASCII or you want to pick up more than one filename, ...
    (comp.lang.tcl)
  • Re: Thesaurus in Entourage
    ... For those who are trying to use my script last posted, ... set oc to the clipboard ... set theApp to name of first process whose frontmost is true ... > changes to properties when run for mthe Entourage script menu. ...
    (microsoft.public.mac.office.entourage)
  • Re: Copy Pathname Script?
    ... >> perhaps I could adapt using that function, if I knew it as a script. ... > ' on clipboard ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ... Dim strHTM ...
    (microsoft.public.scripting.wsh)
  • Re: AppleScript - paste into message window
    ... >> I have an AppleScript that copies a line of text to the clipboard, ... >> Looking at the Entourage Dictionary in AppleScript, ... > Here's the script... ...
    (microsoft.public.mac.office.entourage)