Log file with current date and time

Core FTP client questions and answers
Post Reply
Hari
Posts: 1
Joined: Tue Feb 01, 2011 6:20 am

Log file with current date and time

Post by Hari »

Hi

Is there any means to include the current date and time in the name of the log files written as part of the ftp transfers done?

For eg. I need to have the current date and time in name of the log files (files.log and details.log) in the below command, so that each time I run the command, new log files are created.

coreftp.exe -s -OS -site MY_FTP -u E:\Transfers\My_Test -p /My_Destination -output files.log -log details.log

Thanks and Regards
Hari.
ForumAdmin
Site Admin
Posts: 1011
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Use:

-log logfile%Y%m%d%HH%MM%SS.log
Post Reply