Re: Getting short (DOS) name of file?
| From: | Leif K-Brooks | Date: | Tue, 31 Dec 2002 07:14:18 +0000 |
| Subject: | Re: Getting short (DOS) name of file? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129748@lists.php.net to get a copy of this message | ||
Thanks... thing is, it can be anything from c:\whatever.exe to c:\program files\program name\bin\program.exe. I'll write a function that goes to each directory in a string and does a dir /x if I have to, but isn't there a simpler way?
Michael Sims wrote:
On Tue, 31 Dec 2002 01:12:47 -0500, you wrote:-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.I'm trying to run some (often user-defined) files on my windows server. Thing is, it seems to want short names (like C:\PROGRA~1\WHATEVER\PROG.EXE). Is there any way to get the short name from a long name?Take a look at this: http://makeashorterlink.com/?V25A32BE2