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
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
Post a Comment