I´m trying to upload a file to a server using PSFTP, a script is generated automatically using batch scripting, the psftp is called at the batch script. But the file is not being uploaded and no errors are shown.
FTP Script:
lcd C:\files
cd /
put file.txt
exit
FTP log:
New local directory is C:\files
Remote directory is now /
local:file.txt => remote:/
As you can see at the FTP log the remote is empty and the file is not transferred. But if we do the same commands manually (not executed in a batch script) the file is transferred correctly.
Please help us to find the root cause of this.