how to create every day at 12 am new log file with current date VBScript -
strfilename1 = "d:\log.txt" strcontent = "" & & space(2) & dir & vbcr & vblf set objfs = createobject("scripting.filesystemobject") set objlogs = objfs.opentextfile(strfilename1, forappending, true) objlogs.writeline(strcontent) objlogs.close
Comments
Post a Comment