For /f “tokens=1-4 delims=/ ” %%a in (‘date /t’) do (set mydate=%%c%%b%%a) set files=%mydate%_ResumoOperacoes_0.XML echo wscript.Echo dateadd(“d”, -1, now()) > “%temp%\yesterday.vbs” for /F “tokens=1-4 delims=/ ” %%a in (‘cscript //nologo “%temp%\yesterday.vbs”‘) do (set mydate=%%c%%b%%a) set files2=%mydate%_ResumoOperacoes_0.XML echo %files2% echo wscript.Echo dateadd(“d”, -2, now()) > “%temp%\yesterday.vbs” for /F “tokens=1-4 delims=/ ” %%a in (‘cscript //nologo “%temp%\yesterday.vbs”‘)
Continue reading Script baixar arquivos FTP nome como parametro