'//initialize script components
On Error Resume Next'Option Explicit
Dim objShell
Dim strOutputFile
'//initialize WMI objects
Set objShell = WScript.CreateObject("WScript.Shell")
'//initialize variables
strOutputFile = "C:\temp\super_awesome_log_file_for_keith.log"
tfDoWhileLoopExit = "false"
'//engage
Do While tfDoWhileLoopExit = "false"
'wscript.echo "boo"
objShell.Run("cmd /c ECHO " & Now & chr(62) & chr(62) & " " & strOutputFile)
wscript.sleep 30000
Loop
'//cleanup
Set objShell = Nothing
strOutputFile = ""
tfDoWhileLoopExit = ""
So I created a Generic Application with the follow settings:
No comments:
Post a Comment