I found a script online:

if exist "C:\Program Files (x86)\TightVNC" goto :eof ELSE
if exist "C:\Program Files\TightVNC" goto :eof ELSE
"\\network share\tightvnc-2.0.4-setup.exe" /S
regedit /S "\\network share\TightVNC.reg"
net stop "TightVNC Server"
net start "TightVNC Server"
rmdir /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\TightVNC\"

Anyone help me figure this out? I created an Online Shell Script for this and pasted the script into the box. When I run this as a bat file from the local machine it works perfectly, but when I push it out from the KBOX I get errors 1, 2, and 404. I'm not experienced with scripting so what am I missing?




0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer



Did you change the "Script File Name:" script.bat?

Answered 04/12/2012 by: dugullett
Red Belt

  • Actually, you may be right. I think I got one of those errors when I forgot to change that.
Please log in to comment
Answer this question or Comment on this question for clarity



I do something similar, b ut I run it as a Online KScript. And I seperate it into three batch files.

The first one runs the setup, the second one does the regedit, and the third one restarts the service. It has been working OK for me, but I run it as the local admin account on the machine.

Answered 04/12/2012 by: WGM_Jeff
Fourth Degree Black Belt

Please log in to comment