Hi,
I am trying to copy a file using the SysCommand node and running into some trouble. Hoping someone can assist.
Here is what I have but I am getting an error: The system cannot find the file specified. This is the very path I am using to create the file - works just fine. At the end of the flow, I want to copy the file to an Archive folder and now it is saying it cannot find the file. BUT, it is there!
SysCommand - Command:
Copy \prod\work\Vendor_Files\OutFile.csv \prod\work\Vendor_Files\Archive\OutFile.csv
(nothing in the Command Input box)
Thanks
Kelly,
Thank you for your reply! Immediately I thought I was such an idiot for not seeing this earlier. But I tried changing the Command to each of the following but still get "The system cannot file the file specified".
Copy \prod\work\Vendor_Files\OutFile.csv \prod\work\Vendor_Files\Archive
Copy \prod\work\Vendor_Files\OutFile.csv \prod\work\Vendor_Files\Archive\
Copy \prod\work\Vendor_Files\OutFile.csv Archive
I can't remember exactly, but went thru same issue. I think I found the destination had to have filename as well. However, this was my final solution. Also make sure what ever configuration your system command is running on , has the SYS CMD using an owner with rights to all the paths. We usually set this as "Lawson" user with full rights.
In Windows Environment, I've setup a "MOVE.CMD" file and call it with the system node with fully qualified path/filename using global Variables.
Global Variable Source File (%1) = = \\\\Host\\Share\\RevImportFileName.csv
Global Variable Destination File (%2) = = \\\\Host\\Share\\ARCHIVE\\RevImportFileName.csv
Global Variable Path/Name of ArcIt batch command = = \\\\Host\\Share\\AcrIt.CMD
( Double (escape) back-slashes in file path)
ArcIt.cmd = MOVE %1 %2
Sys Command =