=> Application just hangs and does not execute the script.
(This same script runs from the command line successfully without error.)
I am using the latest WinSCP v4.2.3
c:\program files\winscp3\winscp.com /script=scriptFile.txt /parameter \\path_to_remote_file\filename /log=logfile.xml
scriptFile.txt file =
option batch abort
option confirm off
option transfer binary
put -nopermissions %1%
I have also tried this command in the Java App without the path as:
winscp.com /script=scriptfile.txt /parameter \\path_to_remote_file /log=logfile.xml
(My System Env variable PATH includes c:\program files\winscp3\ )
==> still hangs Java App
I have also tried this command in the Java App using winscp.exe command instead:
c:\program files\winscp3\winscp.exe /console /script=scriptFile.txt /parameter \\path_to_remote_file\filename /log=logfile.xml
==> Java App runs the command but the Winscp GUI display as if no script was provided.
Any suggestions on getting this to work via the Java App?