Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
jwilkinson

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