|Think about Loose Coupling|
Re: Re: Re: Re: (Not Quite Perl) Running Scripts from Right-Click Context Menu in Windowsby BrowserUk (Pope)
|on Jul 25, 2003 at 03:37 UTC||Need Help??|
No. Not a relative path :)
The correct term is "short names". Example
Here the full (or long) name of the directory is "Program files". The short name is "PROGRA~1".
This was the hack MS introduced to allow Dos/Win95 programs that were written expecting the old 8.3 filename format to continue to work once they introduced the long filenames that could include spaces & other 'funny characters' and multiple .s etc. Mostly I had forgotten they still existed, but for some reason, when you use the "%1" syntax as I described above, you get the short form rather than the long one.
For many things, rename, open, opendir etc. these work just fine, but if you were trying to match file or directory names that followed some pattern then you aren't going to get the expected result when you get given a shortened form.
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