Post a reply :: Support Forum

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Username
Subject
Message body
Options

Add an Attachment

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


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

Topic review

Author Message
Guest
martin wrote:

OK. That's for a batch file (.bat), not script file. Feel free to suggest a better wording to make it more clear.


The wording is fine, I just tried for troubleshooting my problem.

Thanks for the great respondings!
martin

OK. That's for a batch file (.bat), not script file. Feel free to suggest a better wording to make it more clear.
Guest
martin wrote:
Anonymous wrote:
I found the %% on the page https://winscp.net/forum/viewtopic.php?t=14876
I tried this when I was troubleshooting my problem;-)

You have pointed back to your own topic by mistake. Please try again Smile


Oops... https://winscp.net/eng/docs/scripting
martin
Anonymous wrote:
I found the %% on the page https://winscp.net/forum/viewtopic.php?t=14876
I tried this when I was troubleshooting my problem;-)

You have pointed back to your own topic by mistake. Please try again Smile
Guest
I download the new version 5.7 and after replacing %% for % the problem is solved.

I found the %% on the page https://winscp.net/forum/viewtopic.php?t=14876
I tried this when I was troubleshooting my problem;-)
martin
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.
Guest
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?

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License