Re: Getting short (DOS) name of file?

From: Date: Tue, 31 Dec 2002 19:59:36 +0000
Subject: Re: Getting short (DOS) name of file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129794@lists.php.net to get a copy of this message
I'm using exec(). Frank M. Kromann wrote:
PHP should not have any problems with long file names. I use it often on both WIndows 2000 and Windows XP without anu problems. What is it you are trying to do ? - Frank
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:
     
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
     
-- 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.
-- 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.

« previous php.general (#129794) next »