sftp - Window Batch Script

Use psftp command


cd /d  E:\LocationOf_psftp.exe

psftp userName@HostName.Domain -pw "Pa$$W@rd" -b transferScriptName.scrt

exit

-----transferScriptName.scrt------------ 


lcd G:\LocationWhereYouWantToDownloadUrFilesOnUrLocalServer.
mget dir1/dir2/Filename_*.txt
quit

Comments

Popular posts from this blog

How to Change Permission of Files in Command Prompt