Jump to content

append curent date and time to filename?


keilamym
 Share

Recommended Posts

hey everyone...

i have a tool i created that created a log file... once i rerun the script, id like it to archive the previous logfile, and create a new one... is there a way to append the current date and time to the file name. i've tried items like $date_time=_NowCalc() and used $date_time to appent to the name but i comes back blank... I figured maybe my script was wrong so i put it into a message box and the path is correct...

do anyone else do this and if so, can you please let me know what command your using to append the date to a filename. i can append items like workstation name to a log file but the current date and time isnt working for me..

thanks again

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...