Dec 18, 2008 #1 RNF0528 MIS Apr 4, 2006 115 US I am placing the date in a filename and i am gettin an error? Microsoft VBScript runtime error FileSystem.CreateTextFile ("C:\Pushinstall\Maint."&WshNetwork.ComputerName&"."& WshNetwork.UserName &"." & Date &".txt") The error only occurs when i add Date.
I am placing the date in a filename and i am gettin an error? Microsoft VBScript runtime error FileSystem.CreateTextFile ("C:\Pushinstall\Maint."&WshNetwork.ComputerName&"."& WshNetwork.UserName &"." & Date &".txt") The error only occurs when i add Date.
Dec 18, 2008 #2 PHV MIS Nov 8, 2002 53,708 FR The / is illegal in a filename. Replace this: & Date & with (eg) this: & 10000*Year(Date)+100*Month(Date)+Day(Date) & Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
The / is illegal in a filename. Replace this: & Date & with (eg) this: & 10000*Year(Date)+100*Month(Date)+Day(Date) & Hope This Helps, PH. FAQ219-2884 FAQ181-2886
Dec 18, 2008 Thread starter #3 RNF0528 MIS Apr 4, 2006 115 US Thank you again It worked. The \ was a folder. I very much appreciate the help!!! Upvote 0 Downvote