Problem with XCopy
Posted: Wed Sep 13, 2006 7:29 pm
feyd | Please use
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I try to copy all the files that i manage to find in to the temp directory but somehow it doesnt seems to be working.
Anyone here knows why ??Code: Select all
<?php
// include class
include("Find.php");
// initialize finder
$finder = new File_Find();
// search for matching files
// in named directory and subdirectories
$results = $finder->search("/pdf/i", "C:/Program Files/", "perl");
for ($i=0; $i<sizeof($results);$i++){
echo $results[$i]."<BR>";
exec('xcopy '.$results[$i].' C:\\TEMP', $a, $a1);
}
?>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]