Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Date/Time to a file when it is copied

Status
Not open for further replies.

DrSeussFreak

Programmer
Feb 16, 2007
149
US
I am copying some files from 1 location to another, and would like to (when I copy them) tack on a date/time on it.

Code:
objFSO2.CopyFile "D:\oracle\admin\mrf1\bdump\alert_mrf1.log" , "D:\dba_util\scripts\log\alert_mrf1.log"

Instead of just becoming "D:\dba_util\scripts\log\alert_mrf1.log" I would like it to become "D:\dba_util\scripts\log\alert_mrf1_Date.Time.log
 
sorry, actual code if
Code:
objFSO2.MoveFile "D:\oracle\admin\mrf1\bdump\alert_mrf1.log" , "D:\dba_util\scripts\log\alert_logs\alert_mrf1.log"
 
I know this seems trivial, but I can not find a valid answer on the web =p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top