Here is my sample code:
oShell.Run cProgram & " >" & cFile, nWindowType, True
However, the file isn't created.
The weird thing is that it was working for a while but then stopped. Permissions maybe?
Okay guys, I can't seem to create a custom log in the eventlog no matter what method I use.
I have tried this:
Const NO_VALUE = Empty
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite _
"HKLM\System\CurrentControlSet\Services\EventLog\Scripts\", NO_VALUE
As well as...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.