Skip to main content

xcopy "$(TEMP_FOLDER)\$(FME_JOB_ID)\Temp"  "$(TEMP_FOLDER)\$(FME_JOB_ID)\Results" /I /E /Y /T

From the command line I use xcopy /I /E /Y /T and if the directory does not exist it creates it but within a SystemCaller it does not work and does not give an error message.

I need Help 

hi @gjaguilar does it make any difference if you put the entire command itself between extra quotation marks like this?

xcopy "$(TEMP_FOLDER)\$(FME_JOB_ID)\Temp"  "$(TEMP_FOLDER)\$(FME_JOB_ID)\Results" /I /E /Y /T


Thanks, I´ll try 


It does not work
I enclosed in double quotes and it doesn't work
the process stops to ask if it is a file or a directory
Locally using /I /E /Y does it fine


Ah yes, quotes inside quotes. This works (with and without spaces in the folder names):

"xcopy """@Value(FilePath)""" """@Value(TargetFolder)\Results""" /I /E /Y /T"


Thanks, I´ll try  again 


 I added a FileExistenceChecker transformer to check if the directory exists before using xcopy; otherwise I use another SystemCaller to create a directory with mkdir.

Thanks a lot


Reply