Topic "Unique Logfile Name"

Author Message
[View user's profile]

Joined: 2016-01-13
Posts: 1
Location: New Jersey
Trying to attach a timestamp at the end of the logfile name so it will be easy for me to trouble shoot when I have an issue

here is the batch file that I am running...

winSCP.exe /console /script=MyScript.txt /log="c:\log\MyScript_%TIMESTAMP#yyyymmdd%.log"

all I get in the /log directory is MyScript_.log

thanks for the help
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
The %TIMESTAMP% is for WinSCP script.

In log file name, use !Y!M!D!T

You can post new topics in this forum

Search Site

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License