try to avoid space in your parameters. ________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danna Li Sent: Friday, June 01, 2007 3:41 PM To: perl-win32-admin@listserv.ActiveState.com Subject: system call to xcopy problem Hello, I am trying to make system call to xcopy in perl on Windows XP to copy down a folder from the server locally. Same and similar commands works on other perl script but not on the current one I am working on. All of the following $cmd work from a command prompt but seems to be ignored from the system call in the perl script and it has a return value of 0. Any help or suggestion would be much appreciated! Thanks, D # the paths have no blank space $localbuilddir = $LayoutDrive."\\builds\\".$buildname; $binbuild = $builds."\\".$tempdata[0]."\\".$tempdata[1]."\\Release\\".$tempdata[2]." \\".$buildname; # only the copy command copying one file with filename spelled out works $cmd = "copy ". $binbuild . "\\abc.exe <file://abc.exe/> ".$localbuilddir; $sysretval = system ($cmd); #$cmd = "xcopy ". $binbuild . "\\*.* <file://*.*/> ".$localbuilddir . "\\ /Y /S /I " ; #$cmd = "copy ". $binbuild . "\\*.dll <file://*.dll/> " . $localbuilddir; #$cmd = "xcopy ". $binbuild . "\\*.* <file://*.*/> ".$localbuilddir . "\\ /Y /S /I " ; #$cmd = $ENV{'SYSTEMROOT'}."\\SYSTEM32\\xcopy /V /E /I /F /Y " . $binbuild . "\\*.* <file://*.*/> " . $localbuilddir; #$cmd = "$ENV{COMSPEC} /C xcopy /V /E /I /F /Y " . $binbuild . "\\*.* <file://*.*/> " . $localbuilddir; ________________________________ Be a better Heartthrob. Get better relationship answers <http://us.rd.yahoo.com/evt=48255/*http://answers.yahoo.com/dir/_ylc=X3o DMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTkl fMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=list&sid=396545433> from someone who knows. Yahoo! Answers - Check it out. This message is for the named person's use only. If you receive this message in error, please delete it and all copies from your system, destroy any hard copies and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. All information herein is provided for informational purposes only, and is intended solely for your use and may not be quoted, circulated or otherwise referred to without our express consent. The message may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. Nomura Holding America Inc., Nomura Securities International, Inc, and their respective affiliates (collectively "Nomura") each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state the views of such entity. It is not to be considered as an offer to sell or solicitation of an offer to buy the securities or other products discussed herein. Any commentary contained herein was prepared by sales and/or trading desk personnel. This is not a research report and the commentary contained herein should not be considered to be research. All prices, yields and opinions expressed are indicative only and are subject to change without notice. Any reference to the terms of executed transactions should be treated as preliminary only and subject to our formal written confirmation. Nomura and its employees may have a position in the securities or other products discussed herein, and may make purchases from and/or sales to customers on a principal basis or as agent for another person. Nomura also may have acted as an underwriter of such securities or other products, and may currently be providing investment banking services to the issuers of such securities or products.
_______________________________________________ Perl-Win32-Admin mailing list Perl-Win32-Admin@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs