BAT/Script not working while CL does

Advertisement

rogersab1223
Joined:
Posts:
2

BAT/Script not working while CL does

Hi All -

So, every day, I move a file from my network to my client's bank. I've recently upgraded my server and move my scripts over to the new server. This WAS working on the old server.

Set up is this:
Task Scheduler executes a .bat file which runs a WinSCP script.

WinSCP Script is as follows:
open sftp://wokluprd:[password]@[bank address]
 
cd /incoming/c21opipd
 
lcd "\\remit\RFE-x9"
 
put * -nopermissions -nopreservetime
 
exit

.Bat file text which executes this follows:
# start 
@echo off
winscp.com /script="BOATransfer-RFE.txt" /log="C:\Logs\WK\WK_log.log"
# end

When I open a command line session with the bank, entering those commands one by one works perfectly. When I run the .bat file (even if I run it as an admin) it does not.

Any ideas? Anything I can do to troubleshoot? This is particularly frustrating because the only difference is literally the physical server. Everything else is the same.

Reply with quote

Advertisement

rogersab1223
Joined:
Posts:
2

Boy do I feel dumb.

When I posted the .bat file, I saw it was logging to a location that didn't exist.

I fixed it. It seems to be working now.

Sorry about that. I have no idea how I didn't notice that before.

Reply with quote

Advertisement

You can post new topics in this forum