On Saturday 24 July 2004 19:15, Rosen wrote:

Please do not top post.

> But how I can parse this output ?

> > c:\>dir c:\test.txt
> >   Volume in drive C is Primary
> >   Volume Serial Number is 003E-6CEA

There are many ways to go about this, I'll outline one of them. First you need 
to grab the output so:

  exec('dir c:\', $output);

Then you can use something like substr() on $output[1] (the second line) to 
grab the serial number.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
A fanatic is a person who can't change his mind and won't change the subject.
- Winston Churchill
*/

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

Reply via email to