WinSCPでLinuxからファイル名に今日のYYYYMMDD0000~2400が付いたファイルをダウンロードする
DL用の今日日付フォルダを作成して、開き、WinSCPのスクリプトファイルを実行する
md c:\hoge\dl_dir\%date:/=% start c:\hoge\dl_dir\%date:/=% winscp /console /script="script.txt"
↓スクリプトファイルサンプル
option batch on option confirm off open user:password@server option transfer binary cd /hoge get *%TIMESTAMP#yyyymmdd%00* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%01* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%02* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%03* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%04* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%05* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%06* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%07* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%08* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%09* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%10* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%11* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%12* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%13* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%14* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%15* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%16* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%17* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%18* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%19* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%20* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%21* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%22* c:\hoge\dl_dir\%date:/=%\ get *%TIMESTAMP#yyyymmdd%23* c:\hoge\dl_dir\%date:/=%\ close exit