I'm a newbie to scripting, so please be gentle.
I place the script below in my SendTo folder, and use it to get the full
name + path of files, i.e., I right click the file and then select "send
to", and then select the script below. The script puts the full name + path
into the Windows clipboard.

I can't figure out how to modify the script so that I could right click on a
folder (instead of a file), in order to get the folder's path reported into
the Windows clipboard.

I'd appreciate any tips on: [1] how to modify the script, and [2] where I
could find documentation that would show me how to modify the script / to
give me more info to help me understand your answer about how to modify the
script.

Thanks, Marc ee poo

Re: Drag folder onto script to get folder's path by Björn

Björn
Mon Sep 12 03:10:49 CDT 2005

"Marc B. Hankin" <marc@marchankin.com> wrote in message
news:uq#PmYztFHA.3628@TK2MSFTNGP14.phx.gbl...
> I'm a newbie to scripting, so please be gentle.
> I place the script below in my SendTo folder, and use it to get the full
> name + path of files, i.e., I right click the file and then select "send
> to", and then select the script below. The script puts the full name +
path
> into the Windows clipboard.
>
> I can't figure out how to modify the script so that I could right click on
a
> folder (instead of a file), in order to get the folder's path reported
into
> the Windows clipboard.
>
> I'd appreciate any tips on: [1] how to modify the script, and [2] where I
> could find documentation that would show me how to modify the script / to
> give me more info to help me understand your answer about how to modify
the
> script.
>
> Thanks, Marc ee poo


You don't have to modify the script. Just start the registry editor, locate
the "HKEY_CLASSES_ROOT\Folder" key and add the following information:

1) Add a new key under the Folder key. Name the key "Copy path to
clipboard".
2) Under the "Copy path to clipboard" key, add a new key named "command".
3) Modify the (default) value under the "command" key to look like the
following:
"wscript.exe <full path to your script> %1"

Now right click on a folder and select "Copy path to clipboard". The path to
the folder will be sent to your script as an argument, and your script can
use the WScript.Arguments array to get the folder path.

--
Björn Holmgren




Re: Drag folder onto script to get folder's path by Andreas

Andreas
Mon Sep 12 07:02:04 CDT 2005

Marc B. Hankin (marc@marchankin.com) schrieb/wrote:

> I place the script below in my SendTo folder, and use it to get the
> full name + path of files, i.e., I right click the file and then
> select "send to", and then select the script below. The script puts
> the full name + path into the Windows clipboard.

You might be interested in Ninotech's Path Copy:
http://home.worldonline.dk/ninotech/freeutil.htm

The context menu then offers nine standard ways of copying the path, in
addition to the user defined copying methods that you create yourself:

- Short Name: File/folder name converted to 8.3 characters
- Long Name: File/folder name
- Short Folder: Parent folder name converted to 8.3 characters
- Long Folder: Parent folder name
- Short Path: Full path name converted to 8.3 characters
- Long Path: Full path name
- Short UNC Path: Full UNC path name converted to 8.3 characters
(only enabled in network environment)
- Long UNC Path: Full UNC path name
(only enabled in network environment)
- Internet Path: Full UNC path name converted to Internet path
(only enabled in network environment)
- Setup... Create your own copy methods for copying the path names.

--
Gruß, | Bitte in der NG antworten | Win98-Tipps:
Regards, Andreas | Please reply to the NG | http://a-kaestner.de
==================*===========================*=======================72
OE-QuoteFix 1.19.2: http://home.in.tum.de/~jain/software/oe-quotefix/