Use Windows Scripting.  Let's say that your program is called myApp and that
the batch file that you use to run it is called run_myApp.bat.  Simply
create a script file called run_myApp.vbs and use the following VBScript
code:

Set objShell = Wscript.createObject("Wscript.shell")
objShell.run("javaw...")

Obviously, your script requires a little more work; you need to build the
path to your class and setup the Java classpath, but fundamentaly this is
all you need to do to run javaw without a console.

Your work isn't quite done, however.  I find that Norton Antivirus puts up a
seriously hostile dialog box when I run a VBS script directly.  To this end
you need to create a scripting host file.  Let's call it run_myApp.wsh:

[ScriptFile]
Path=run_myApp.vbs
[Options]
...

You can execute this .wsh file from Start\Run or from a link on the desktop
or whatever.

Kind regards,

Chris Williams.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to