So far I have a script file containing (script.txt):
rem get /var/log/httpd/webserver_access_log C:\logs\*_%date%.log
rem get /var/log/httpd/webserver_access_log C:\logs\*_'date +%F%'.log
get /var/log/httpd/webserver_access_log C:\logs\*+%F.log
and a scheduled task in windows, running the cmd-file containing the below line:
winscp3.exe firstname.lastname@example.org /console /script=C:\logs\script.txt
The file downloads properly, but the rename fails on the windowss side, it just adds some weird looking thing, something like "webserver_access_log_%25date%25.log.
I don't have php or any scripting languange installed in windows, and would prefer leaving it that way. A simple download and rename is all I want - When the log is there in windows, I'm passing it to Analog to create some nice stats, again in windows.
It's rather obvious I'm missing something somewhere, so pls, if anybody could hint me or so, I'd be very grateful!