RE: [PHP] How to get a network drive name

From: Date: Thu, 02 Feb 2006 14:41:53 +0000
Subject: RE: [PHP] How to get a network drive name
Groups: php.general 
Request: Send a blank email to php-general+get-229722@lists.php.net to get a copy of this message
> > 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

« previous php.general (#229722) next »