Trouble downloading filed modified in the past day
Hello, I made a batch file to download files for one of our serves for the past day and put them in their own folder. But for some reason it is only downloading filed from 3/20 and before
Any ideas why that might be?
Any ideas why that might be?
setlocal enableextensions set datestr=%date:~-10,2%_%date:~7,2%_%date:~-4,4% mkdir C:\Users\ipoffice\Desktop\Voicemail_VRL\%datestr% C:\"Program Files (x86)"\WinSCP\WinSCP.exe /log="C:\Users\ipoffice\Desktop\winscp.log" /ini=nul /command "open sftp://Administrator:1p0ff!ce@192.168.2.5/ -hostkey=""ssh-rsa 2048 bi/MfOEaFH9KO4HvNACGKDADYp38EbXg4fPQsHnlV4U=""" "cd /opt/vmpro/MM/VRL" "lcd C:\Users\ipoffice\Desktop\Voicemail_VRL\%datestr%" "get -transfer=automatic -filemask=*<=1D -preservetime=all -neweronly *" "exit" PAUSE