home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 February
/
CMCD0205.ISO
/
Software
/
Freeware
/
Utilitare
/
pebuild
/
plugin
/
ultravnc
/
ultravnc.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
2004-12-10
|
761b
|
29 lines
@echo off
setlocal
echo VNC: Check if network client is installed
bartpe.exe -c c -q ms_msclient
if errorlevel 1 (
echo.
echo VNC: MS Client is not installed!
echo VNC: Please load client network support before this script!
goto _err)
echo VNC: Check if server service is installed
bartpe.exe -c s -q ms_server
if errorlevel 1 (
echo.
echo VNC: MS Server service is not installed!
echo VNC: Please load file sharing support before this script!
goto _err)
echo VNC: Installing VNC Server Service
%~dp0winvnc.exe -install
echo VNC: Starting the VNC Server Service,
net start "vnc server"
goto _end
:_err
echo.
echo VNC: There was an error, script aborted!!!
rem set errorlevel to 1 by (mis)using color
color 00
:_end
endlocal