in reply to Re: (Not Quite Perl) Running Scripts from Right-Click Context Menu in Windows
in thread (Not Quite Perl) Running Scripts from Right-Click Context Menu in Windows
If you modify svsinghs step 10 as follows:
perl.exe c:\work\perl\qaHelpTitles.pl "%1"
Then the name of the directory that you right-clicked on to run the script will be supplied to the script as $ARGV[0].
A word of caution though. The path supplied is one of those dratted shortened thingies. It's been so long since I encountered one of these that I forgot what they are called?. These work okay for many purposes, but are likely to confuse some things. There's probably a simply way of retriving the expanded version from the shortened one, but I haven't looked that up yet.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (Not Quite Perl) Running Scripts from Right-Click Context Menu in Windows
by Intrepid (Curate) on Jul 25, 2003 at 10:05 UTC | |
by BrowserUk (Patriarch) on Jul 25, 2003 at 10:24 UTC | |
Re: Re: Re: (Not Quite Perl) Running Scripts from Right-Click Context Menu in Windows
by revdiablo (Prior) on Jul 25, 2003 at 02:53 UTC | |
by BrowserUk (Patriarch) on Jul 25, 2003 at 03:37 UTC |