Re: Copy Pathname Script?
From: mayayana (mayaXXyana1a_at_mindYYspring.com)
Date: 01/07/05
- Next message: Torgeir Bakken \(MVP\): "Re: Starting a NotesUIWorkspace from WSH (Windows Scripting Host)"
- Previous message: Bill James: "Re: Starting a NotesUIWorkspace from WSH (Windows Scripting Host)"
- In reply to: Mad Ad: "Copy Pathname Script?"
- Next in thread: Mad Ad: "Re: Copy Pathname Script?"
- Reply: Mad Ad: "Re: Copy Pathname Script?"
- Messages sorted by: [ date ] [ thread ]
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 > >
- Next message: Torgeir Bakken \(MVP\): "Re: Starting a NotesUIWorkspace from WSH (Windows Scripting Host)"
- Previous message: Bill James: "Re: Starting a NotesUIWorkspace from WSH (Windows Scripting Host)"
- In reply to: Mad Ad: "Copy Pathname Script?"
- Next in thread: Mad Ad: "Re: Copy Pathname Script?"
- Reply: Mad Ad: "Re: Copy Pathname Script?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|