I have written a vbs file that launches a java class. The vbs file is set using windows scheduler so that it can be run every 10 minutes. My code looks like this:
This works fine, except that every 10 minutes it launches (briefly) a command window. Is there a way to launch this java file WITHOUT launching a console window? It is beginning to annoy me having that pop up every 10 minutes but I need the process to run! thoughts?
Thanks!
Code:
Dim WSHShell, FSO, javaclass, cmdline
Set WSHShell = WScript.CreateObject("WScript.Shell")
Set FSO = WScript.CreateObject("Scripting.FileSystemObject")
cmdline = "c:\j2sdk1.4.2_03\bin\java.exe -classpath c:\inetpub\jobs\lib\ DesktopPrintScreen"
WSHShell.Run cmdline, 1, false
Set WSHShell = Nothing
Set FSO = Nothing
WScript.Quit(0)
This works fine, except that every 10 minutes it launches (briefly) a command window. Is there a way to launch this java file WITHOUT launching a console window? It is beginning to annoy me having that pop up every 10 minutes but I need the process to run! thoughts?
Thanks!