Re: Dos Paths
| From: | Neil Freeman | Date: | Wed, 10 Jul 2002 14:39:01 +0000 |
| Subject: | Re: Dos Paths | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106809@lists.php.net to get a copy of this message | ||
FYI - Works in Windows NT 4 SP 6a as well.
joakim.andersson@cybercom.se wrote:
************************************************************************** This Message Was Virus Checked With : SAVI 3.59 May 2002 Last Updated 8th July 2002 ************************************************************************** Hi all, It's actually rather easy. <?php-- ---------------------------- Work: neil.freeman@asa.co.uk Home: neil@curvedvision.com Web: www.curvedvision.com ----------------------------$str_test = passthru("dir /x c:\\myfolder\\");?After this it's just a matter of parsing the dirlist and extracting the right string... Regards Joakim Andersson PS. dir /x works in Windows 2000, not sure about the others... DS.-----Original Message----- From: BB [mailto:ben@themidwestgroup.com] Sent: Wednesday, July 10, 2002 2:15 PM To: php-general@lists.php.net Subject: [PHP] Dos Paths I've got an application that requires dos folder names (8.3 standard) as input. I also have PHP, which quite happily can cope with both. Can someone help me write a function to translate full paths to dos paths Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php