I use TightVNC to manage my servers, which are across the hallway.
Anyhow, I downloaded their Java viewer and created a batch file. Script looks like this (with some names and numbers changed, of course)
The self-executing .jar files runs fine, with the correct port and URL. It prompts me for password, which I input, and boom, I'm in. However, I notice that the command window sticks around after I log in, despite the exit command.Code:@ECHO off set path=C:\Program Files\Diagnostics\TVNCJViewer\tightvnc-jviewer.jar tightvnc-jviewer.jar -jar -port=1234 forge.blargh.com exit
If I close the TVNC viewer window, the command window also closes. If I close the command window, the TVNC window remains open (which is good). So, what am I missing for the command window to close once I log in?
The OS from the viewing computer is Win7 HP x64, if it makes any difference.
-
SoundOf1HandClapping Was once a Forge
-
SoundOf1HandClapping Was once a Forge
You know, never mind, haha. I went the Luddite way and just made shortcuts with the correct port and URL parameters.
-
Add "start" at the beginning of the line before you run the .jar file. Otherwise, the .bat will wait for the program to "finish," i.e. exit, before moving down to the exit command.
Autoclose batch file window
Discussion in 'Windows OS and Software' started by SoundOf1HandClapping, Mar 24, 2012.