Trouble downloading filed modified in the past day

Advertisement

jwilkinson
Joined:
Posts:
1

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?

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Trouble downloading filed modified in the past day

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum