Try escaping your backslashes. exec('cmd /c xcopy c:\\source c:\\target');
---John Holmes... ----- Original Message ----- From: "Adrian Christen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 29, 2002 12:11 PM Subject: [PHP] xcopy inside of exec() > Hi! > > I'm traying tu use the xcopy commando from win 2000 under php4, to move folders: > > <? > //like this: > exec('cmd /c xcopy c:\source c:\target'); > ?> > > But it does not work ... also passthru() does not give any (expected) answer? > Where i'm wrong? > > Thanx for your answers! > > Adrian > > > > -- > 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