Syntactic Confectionery Delight | |
PerlMonks |
Re: How to have universal perl script for C and D drive ?by ikegami (Patriarch) |
on Feb 08, 2008 at 17:49 UTC ( [id://667023]=note: print w/replies, xml ) | Need Help?? |
The path to the Program Files directory can be found in the registry at
The drive in which the script resides can be found using
Note that this won't work if the script was launched using a UNC path. ($drive will be undef.)
In Section
Seekers of Perl Wisdom
|
|