Core FTP LE dynamic log file names?

Core FTP client questions and answers
Post Reply
brianq1
Posts: 20
Joined: Tue Mar 18, 2008 12:39 pm

Core FTP LE dynamic log file names?

Post by brianq1 »

I would like to log all activity to a directory in which the log files are written in the format YYYYMMDD.log.

I thought it would be as simple as going to View->Options->General and the clicking the "Log all activity" checkbox and specifying a file name of C:\Logs\%Y%m%d.log. However, the name is taken literally and one file (%Y%m%d.log) is written to the log directory.

Is the functionality I am looking for exist?

Thank you.
brianq1
Posts: 20
Joined: Tue Mar 18, 2008 12:39 pm

Post by brianq1 »

Will do...thanks CP.
brianq1
Posts: 20
Joined: Tue Mar 18, 2008 12:39 pm

Post by brianq1 »

Thanks for keeping me updated CP...I'll be looking out for it.
maurert
Posts: 59
Joined: Tue Oct 10, 2006 12:18 pm

Thank-you!

Post by maurert »

Great suggestion and great implementation. I like it.
maurert
Posts: 59
Joined: Tue Oct 10, 2006 12:18 pm

Great stuff but how do I get t to work?

Post by maurert »

From my command line:

-output c:\batch\offsite_backup\output\%Y%m%d%H%M%S_Z_11us.log

That results in a file name of mHS_Z_11us.log in the specified directory.

What did I do wrong? Build 1560...
maurert
Posts: 59
Joined: Tue Oct 10, 2006 12:18 pm

bump

Post by maurert »

bump
brianq1
Posts: 20
Joined: Tue Mar 18, 2008 12:39 pm

Post by brianq1 »

CP, I noticed the new build recently released (1565) now supports dynamic log file naming. However, I'm still not able to generate the log file names using the approach described in my original post. Is it that this feature is only available from the command-line interface?
brianq1
Posts: 20
Joined: Tue Mar 18, 2008 12:39 pm

Post by brianq1 »

Thanks CP.
brianq1
Posts: 20
Joined: Tue Mar 18, 2008 12:39 pm

Post by brianq1 »

CP, build 1568 works great...much thanks!
maurert
Posts: 59
Joined: Tue Oct 10, 2006 12:18 pm

re new update,

Post by maurert »

I'll need to test it, been out of the office and will be out most of the next month. I won't forget this though...and I'll reply here once it's tested.
maurert
Posts: 59
Joined: Tue Oct 10, 2006 12:18 pm

User error

Post by maurert »

Gee it's been a long time, but I finally was able to play around with this. I found my problem and perhaps my mistake will help others.

It I typed the coreftp command into a cmd window, the time substitutions worked fine. However when I'd use the commands in a .bat file all I'd get was the from the string %Y%m%d%H%M%S would be mHS in the file name.

I finally figured out that in a .bat file I need the string below:
%%Y%%m%%d%%H%%M%%S

I'm sure the experienced DOS script writers wouldn't have made this mistake.

Todd
Post Reply