I am creating a script file using windows BATCH and then calling it using PSFTP (using Putty from command line to call TransferScript.txt).
The requirement is to get a file from Unix box to windows and then delete it from Unix but after getting the return 0. My code looks like:
TransferScript.txt
lcd E:\Temp
cd /sap/xx/yy
get abc.dat
IF %ERRORLEVEL% EQ 0
rm abc.dat
quit
This doesn't work, however file is getting copied but not getting deleted. Can anyone help?