> 
> i have already tryed this command barry, in fact the name of 
> the volume is
> different from the name of a network drive. A volume concerns 
> a partition i
> think
> For exemple, you can define many drives, let say COMMON1(X:), 
> COMMON2(Y:) in
> the DISK(C:).
> In this situation, the volume name is DISK for the three drives and
> different from COMMON1 and COMMON2.
> I have tried many other dos commands but with no succes
> TALL Ibrahima
> 


You can do this:

$net_use=`NET USE`;//notice the backticks here!
$lines=explode("\n",$net_use);

This will give you an array containing the output, line by line, of the NET
USE command.  Use foreach() to cycle through the $lines array and parse out
the driver letters and names.

JM

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

Reply via email to