Unable to get WinSCP to work with PeopleSoft 9
Hello, I have an application engine program in PeopleSoft which builds a .bat file and a command file. When I double click the bat file from the explorer directory, it runs and downloads the file I need. When I run it from the application engine in PeopleSoft it doesn't work.
I can log on to WinSCP on the box that PeopleSoft is located on and run the .bat file and all works properly.
I know the bat file is working as the 'move' command is being executed.
any ideas on how I can see what is wrong? The log file has no information in it. I have added WinSCP to the %path variable on the box.
this is the .bat file
D:
cd D:\PeopleSoft\PsftERP\appserv\PSDEV1\files
move hel11242.001 ftp_test
winscp.exe /console /script=d:\PeopleSoft\PsftERP\appserv\PSDEV1\files\ftp_command.txt /log=d:\PeopleSoft\PsftERP\appserv\PSDEV1\files\error_check_rel.txt /ini=test.ini
this is the command file
option batch abort
option confirm off
open ftps://username:password@secureftp.url -certificate="xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" -explicitssl
cd /HC00HT3
get -transfer=binary *.001 d:\PeopleSoft\PsftERP\appserv\PSDEV1\files\
close
exit
I can log on to WinSCP on the box that PeopleSoft is located on and run the .bat file and all works properly.
I know the bat file is working as the 'move' command is being executed.
any ideas on how I can see what is wrong? The log file has no information in it. I have added WinSCP to the %path variable on the box.
this is the .bat file
D:
cd D:\PeopleSoft\PsftERP\appserv\PSDEV1\files
move hel11242.001 ftp_test
winscp.exe /console /script=d:\PeopleSoft\PsftERP\appserv\PSDEV1\files\ftp_command.txt /log=d:\PeopleSoft\PsftERP\appserv\PSDEV1\files\error_check_rel.txt /ini=test.ini
this is the command file
option batch abort
option confirm off
open ftps://username:password@secureftp.url -certificate="xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" -explicitssl
cd /HC00HT3
get -transfer=binary *.001 d:\PeopleSoft\PsftERP\appserv\PSDEV1\files\
close
exit