using Operating system (CmdExec) to merge 2 files into 1 output file
-
28 เมษายน 2555 17:05
What is the proper syntax to put in an Operating system (CmdExec) step for the following dos command and set it to always overwrite the output file?
D:\folder1\folder2>copy/b file1.txt + file2.txt OutputFile.txt
ตอบทั้งหมด
-
28 เมษายน 2555 17:18
D:\folder1\folder2>copy /Y /B file1.txt + file2.txt OutputFile.txt
Chuck
- ทำเครื่องหมายเป็นคำตอบโดย ckchouk 29 เมษายน 2555 15:35
-
29 เมษายน 2555 13:59
Ok, if I just type the command as is, here is what I get:
Executed as user: domain\user. The process could not be created for step 5 of job 0x44857670148EEE4396BD899313105ECE (reason: The system cannot find the file specified). The step failed.
Even added the domeain\user to the local admin group.
-
29 เมษายน 2555 14:02The command runs fine at the command promt.
-
29 เมษายน 2555 14:50
Are you specifying a fully-qualified path for each file, including the output?
If you just execute an "Operating System (CmdExec)" step as-is, it will execute using Windows\system32 as the current folder.
- ทำเครื่องหมายเป็นคำตอบโดย ckchouk 29 เมษายน 2555 15:34
-
29 เมษายน 2555 15:29
Ok, if I just type the command as is, here is what I get:
Executed as user: domain\user. The process could not be created for step 5 of job 0x44857670148EEE4396BD899313105ECE (reason: The system cannot find the file specified). The step failed.
Even added the domeain\user to the local admin group.
You need to add a full path to your 2 source files (and destination for that matter).Chuck