vbscript11
IS-IT--Management
Hi Experts,
Please help me out with a VB Script to create a file every month.
Thanks in advance
Sujith
Please help me out with a VB Script to create a file every month.
Thanks in advance
Sujith
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, strPath, f
strPath = "c:\testfile" & (100*Year(Now)+Month(Now)) & ".txt"
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile(strPath, ForAppending, True)
f.Write "Hello world! " & Now
f.Close