PSFTP Batch Not Working

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I am running psftp: Release 0.60


The command line I am using is:

C:\putty\PSFTP.EXE  -l user -pw password x.x.x.x -b "d:\ftp files


The content of the file Files_to_Upload.txt is:

cd /
lcd d:\captures
put D:\Captures\test.txt


The output when the command is run is:

C:\putty\PSFTP.EXE -bc -v -l user -pw password x.x.x.x -b "d:\ftp files
Looking up host "x.x.x.x"
Connecting to x.x.x.x port 22
Server version: SSH-2.0-Serv-U_9.1.0.2
We claim version: SSH-2.0-PuTTY_Release_0.60
Using SSH protocol version 2
Using Diffie-Hellman with standard group "group14"
Doing Diffie-Hellman key exchange with hash SHA-1
Host key fingerprint is:
ssh-rsa 1024 e4:dd:11:2e:82:34:ab:62:59:1c:c8:62:1d:4b:48:99
Initialised AES-256 CBC client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 CBC server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "user".
Sent password
Access granted
Opened channel for session
Started a shell/command
Connected to x.x.x.x
Remote working directory is /
psftp> cd /
Remote directory is now /
psftp> quit
Sent EOF message
Disconnected: All channels closed


The file never gets uploaded nor do I see the output of the ls

When I paste the commands manually to the command window they execute
as desired.

I have been going in circles for a few days, any guidance will be
GREATLY appreciated.


Site Timeline