Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exec

Status
Not open for further replies.

Gravel

Technical User
Dec 11, 2001
2
EU
i'm trying to do an exec command to run "ipconfig /all > c:\1.txt", its fine doint the ipconfig /all but not the > c:\1.txt ...

any help?
 
Try exec('ipconfig.exe', '>c:\1.txt');

Regards


Jakob
 
Sorry,

That should have read:

exec('ipconfig.exe', '/all > c:\1.txt');

c",)


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top