Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Re: (Not Quite Perl) Running Scripts from Right-Click Context Menu in Windowsby BrowserUk (Patriarch) |
on Jul 25, 2003 at 00:13 UTC ( [id://277759]=note: print w/replies, xml ) | Need Help?? |
If you modify svsinghs step 10 as follows:
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. Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
In Section
Meditations
|
|