→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎04-22-2015 10:52 AM
@echo off
set VNCServer=WINvnc.exe
echo Checking for VNC server application...
wmic /Node:%2 process get name|find /I "%VNCServer%">nul
if '%ERRORLEVEL% EQU '0 (
echo found %VNCServer% process, using locally installed VNC
start %1vncviewer.exe %2
) else (
echo NOT found %VNCServer% process, installing VNC service
start %1lsremote %2
)
timeout /T 5
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now