Calling from ant exec task works on Win10 but does not work on Win7
Hi,
I am running WinSCP from a command file. The command file has this content:
open ftp:user:****@ftpx.forpsi.com:21
synchronize remote .\deploy\t /www/pomroots/pom1/t
I call it from an ANT task using this command line:
c:\windows\system32\cmd /c wincp.com /script=... /log=logfile.log
Now when I do it on my Windows10 machine it works. On my Windows7 machine SCP does not connect to the server. When I try it without ANT just using the command line calling directly WinSCP.com from the OS command line, it WORKS on Windows7 too. Just it does not work when called from Ant. The exec task in ANT looks like this:
<exec dir="." executable="c:/windows/system32/cmd.exe" failonerror="true">
<arg line="/c y:\WinSCP\WinSCP.com /ini=null /script=${cmdfile} /log=${cmdfile}.log />
</exec>
On Windows10 this works, on Windows7 not.
I am running WinSCP from a command file. The command file has this content:
open ftp:user:****@ftpx.forpsi.com:21
synchronize remote .\deploy\t /www/pomroots/pom1/t
I call it from an ANT task using this command line:
c:\windows\system32\cmd /c wincp.com /script=... /log=logfile.log
Now when I do it on my Windows10 machine it works. On my Windows7 machine SCP does not connect to the server. When I try it without ANT just using the command line calling directly WinSCP.com from the OS command line, it WORKS on Windows7 too. Just it does not work when called from Ant. The exec task in ANT looks like this:
<exec dir="." executable="c:/windows/system32/cmd.exe" failonerror="true">
<arg line="/c y:\WinSCP\WinSCP.com /ini=null /script=${cmdfile} /log=${cmdfile}.log />
</exec>
On Windows10 this works, on Windows7 not.