Hi all,

It's actually rather easy.

<?php
    $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:[EMAIL PROTECTED]]
> Sent: Wednesday, July 10, 2002 2:15 PM
> To: [EMAIL PROTECTED]
> 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
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to