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 > > Thanks for any insight. > Amish > >
I haven't used Windows in years but try separating the flags. system("XCOPY", "KCPSM3.EXE", $s_tempLocation, "/R", "/Y"); -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/