Problem with "new" timestamp function

Advertisement

Guest

Problem with "new" timestamp function

I tried to make a batch import script for backup my ftp location.

I download the folder "html" to my external drive "S:" on the external drive is an folder "backup".
In the "backup" folder I like to make a new folder with a timestamp as name.

get "/html" "S:\backup\%%TIMESTAMP%%\"

The problem now is that it doesnt use the timestamp function, but "%%TIMESTAMP%%" as text?

Is ther anyone that can help me?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Problem with "new" timestamp function

Why did you double the %? (if there's anything in the documentation that suggest this, please let us know, so that we can improve it).

It should be:
get "/html" "S:\backup\%TIMESTAMP%\"

Also make sure you are using the latest release of WinSCP, 5.6.x RC. Or 5.7 [stable] - to be released in few hours.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum