note 45209 modified in function.copy by aidan
| From: | aidan@php.net | Date: | Wed, 01 Sep 2004 06:59:04 +0000 |
| Subject: | note 45209 modified in function.copy by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75821@lists.php.net to get a copy of this message | ||
you can also try xcopy command by using Shell to move/copy files/folders from one place to another
here is the code:
<?php
exec('xcopy c:\\myfolder d:\\myfolder /e/i', $a, $a1);
?>
by executing this command, it will move folder along with all contents to destination.
-adnan
--was--
you can also try xcopy command by using Shell to move/copy files/folders from one place to another
here is the code:
<?php
$str=exec("xcopy c:\\myfolder d:\\myfolder /e/i",$a,$a1);
?>
by executing this command,it will move folder along with all contents to destination.
-adnan
http://php.net/manual/en/function.copy.php