home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Software / Freeware / Utilitare / pebuild / plugin / ultravnc / ultravnc.cmd < prev    next >
OS/2 REXX Batch file  |  2004-12-10  |  761b  |  29 lines

  1. @echo off
  2. setlocal
  3. echo VNC: Check if network client is installed
  4. bartpe.exe -c c -q ms_msclient
  5. if errorlevel 1 (
  6.     echo.
  7.     echo VNC: MS Client is not installed!
  8.     echo VNC: Please load client network support before this script!
  9.     goto _err)
  10. echo VNC: Check if server service is installed
  11. bartpe.exe -c s -q ms_server
  12. if errorlevel 1 (
  13.     echo.
  14.     echo VNC: MS Server service is not installed!
  15.     echo VNC: Please load file sharing support before this script!
  16.     goto _err)
  17. echo VNC: Installing VNC Server Service
  18. %~dp0winvnc.exe -install
  19. echo VNC: Starting the VNC Server Service,
  20. net start "vnc server"
  21. goto _end
  22. :_err
  23. echo.
  24. echo VNC: There was an error, script aborted!!!
  25. rem set errorlevel to 1 by (mis)using color
  26. color 00 
  27. :_end
  28. endlocal
  29.