Re: xcopy inside of exec()

From: Date: Wed, 29 May 2002 19:43:46 +0000
Subject: Re: xcopy inside of exec()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99793@lists.php.net to get a copy of this message
Try escaping your backslashes. exec('cmd /c xcopy c:\\source c:\\target'); ---John Holmes... ----- Original Message ----- From: "Adrian Christen" <adr!an@halbehalbe.ch> To: <php-general@lists.php.net> 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 >

« previous php.general (#99793) next »