Hello,
I have below code. I can't figure out to get the filename the way i want.
Here is the current filename it creates when the code runs: DXD EC - Non Updated PCs_11192012_8 0.log
I would like to get the filename as this when the code runs: DXD EC - Non Updated PCs_11192012_0800.log (Two digit hour and two digit minutes).
Please help.
I have below code. I can't figure out to get the filename the way i want.
Here is the current filename it creates when the code runs: DXD EC - Non Updated PCs_11192012_8 0.log
I would like to get the filename as this when the code runs: DXD EC - Non Updated PCs_11192012_0800.log (Two digit hour and two digit minutes).
Please help.
Code:
DIM strDateTime
strDateTime = Now
Dim DomainName : DomainName = "%"
Dim OnlyCheckClientsInTempGroup : OnlyCheckClientsInTempGroup = True
Dim SilentMode : SilentMode = False
Dim EnableLogging : EnableLogging = True
Dim sLogFile : sLogFile = "C:\AV Ops\Reports\Move Scripts\DXD\DXD EC - Non Updated PCs_" & Month(strDateTime) & Day(strDateTime) & Year(strDateTime) &"_" & Hour(strDateTime) &" " & Minute(strDateTime) & ".log"