
|
This is a little VBScript that will create a file with the system date as the file name. I am going to use this script to create a logfile each time I run a daily scheduled task.....
Code :
Varnow = now
vardate = Day(varnow) & "-" & Month(varnow) & "-" & Year(varnow) & ".log"
LogPath = ("C:\MY Logs\" & VarDate)
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.CreateTextFile(LogPath)
Enjoy!
|
|
|

|