No. That's not the code from the article, it should be like:
I do not know about the
set TIMESTAMP_FORMAT=yyyy-mm-dd
for /F "tokens=* USEBACKQ" %%F in (
`winscp.com /command "echo %%TIMESTAMP#%TIMESTAMP_FORMAT%%%" "exit"`
) do set TIMESTAMP=%%F
zip -r "backup-%TIMESTAMP%.zip" C:\Backups
I do not know about the
zip
commandline syntax, that depends on what implementation of ZIP you have. And that's not a WinSCP question anyway.