hsncorrosion Posted January 21, 2007 Share Posted January 21, 2007 I made a batch file to start vncviewer to listen to port 8090 I would like it to close the command prompt after it runs vncviewer, how do I do this? Below is my batch file. vncviewer.exe /listen 8090 Quote Link to comment Share on other sites More sharing options...
Sparda Posted January 21, 2007 Share Posted January 21, 2007 I don't think you can background processes from the windows command line. I would suggest that you just execute the program directly rather then via a shell script. Quote Link to comment Share on other sites More sharing options...
devildragon76 Posted January 21, 2007 Share Posted January 21, 2007 Try using the following in your batch file, it works in XP Pro sp2. vncviewer.exe /listen 8090 & exit Quote Link to comment Share on other sites More sharing options...
jht129 Posted January 21, 2007 Share Posted January 21, 2007 yes, you usually add the exit command at the end of the command. Quote Link to comment Share on other sites More sharing options...
hsncorrosion Posted January 21, 2007 Author Share Posted January 21, 2007 Try using the following in your batch file, it works in XP Pro sp2. vncviewer.exe /listen 8090 & exit Thanx but... That didn't work :cry: Anyone have an idea? EDIT I figured it out, heres the new code I use start vncviewer /listen 8090 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.