2009/11/4 Shawn H Corey <shawnhco...@gmail.com>:
> axr0284 wrote:
>> Hi,
>>  I was wondering if anybody can tell me what I am doing wrong. I am
>> trying to use xcopy:
>> system("XCOPY", "KCPSM3.EXE", $s_tempLocation, "/R /Y");
>>
>> $s_tempLocation contains "c:\temp"
>>
>> When I run the script, I get the following error message:
>> Invalid number of parameters
>>
>> The following command in the command prompt works fine:
>> xcopy KCPSM3.EXE c:\temp /R /Y

You might also want to escape the c:\temp to c:\\temp. If I'm not
mistaken "XCOPY /R /Y" as the first arg to system should also work.
Dp.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to