My systems admin is pleeding with me to stop using FTP 2 carry out application updates from my box, says its old, dangerous and lame, wants me to use PSFTP instead.

its part of the PuTTy package.

I will need to call this psftp.exe from the command line, so i need it to run a batch script of commands, (well 2 lines, get the file, and bye)

but it doesnt work! it opens and shuts immediatley.

my command is "C:\psftp -l ****** -pw ***** host.com.au -bc C:\DownloadScript.txt "

and at the moment my download script simply says "pwd"

so it should just pop up and say my home directory, but like i said, it pops up and disapears.

if i minus the batch bit, it opens up and logs in beatufilly.

any1 got a clue about SFTP??