I am having issues automating a batch file using the windows task scheduler. The worst part is this process was working for years, and now it does not.
I am transferring files to a 3rd party vendor via SSH2 using psftp.exe
. I have a batch file that performs the following process:
1. runs ftp command to get the data from my Unix server.
2. copies the files to a location on the windows server and renames them.
3. launches psftp.exe
from the directory where these files are stored.
4. put commands to place them on the 3rd party server.
5. deletes the files from the window directory.
If I run this batch file manually, the process works flaulessly. When I try and schedule this through Windows task scheduler, it is failing at between step 3 and 4.
The issue started last week when the 3rd party vendor changed SSH servers. I updated the batch file with the new information, but then started to experience the issue above.
Any help will be greatly appreciated.