I tried to make a script to generate log files with the characteristics as follow: "test_date_time.log" my script is like this:
Set objfso = createobject("scripting.filesystemobject")
informacion = " " & DATE & " " & TIME & " "
Set archivoog = objfso.createtextfile("C:\Users\gdlabrui\Desktop\Pick_folder\programs\vbs\ex1 searchAstringAndCopyingOnTxt\" & informacion & ".log",true)
but it appears an error but i dont know how to follow.
Update: Error: Bad file name or number
Code: 800A0034
Source: Microsoft VBScript runtime error.