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

Popular posts from this blog

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -