Question

SystemCaller used for coreFTP upload not working correctly

  • 22 March 2018
  • 1 reply
  • 6 views

Hello,

I am trying to run a simple FTP Upload operation by calling coreFTP using SystemCaller.

This is the command I am using:

"C:\\Program Files\\CoreFTP\\Coreftp.exe" -s ftp://TESTUSER:TEST_PASS44@pvftp.ftpsite.ca -u 'C:\\Users\\User1\\Desktop\\testupload.txt' -log C:\\Users\\User1\\Desktop\\temp.log

This works fine in command prompt but I can't run the same code using systemCaller. I keep getting an error that says that the file is not found. What am I doing wrong here? Any help will be appreciated. Thanks!

Edit: I did a few tests and found out that if I take the single or double quotes off the name of the upload file, it works in SystemCaller. But that fails for file paths that have spaces in them. Trying to put % instead of spaces (I found that as a suggestion) does not resolve the issue. Any thoughts? Thanks


1 reply

Found solution buried in this document.

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/systemcaller.htm?Highlight=system

Double quote the path name and then double quote the whole command

Thanks everyone

Reply