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

  1. @echo off
  2. setlocal
  3. echo BARTPE: Starting Network Support (client)
  4. regsvr32 /s netcfgx.dll
  5. echo BARTPE: Detecting/installing drivers
  6. bartpe -pnp -cn bartpe-* -wg workgroup
  7. if errorlevel 1 goto _err
  8. echo BARTPE: Installing Tcpip
  9. bartpe -c p -i ms_tcpip
  10. if errorlevel 1 goto _err
  11. echo BARTPE: Installing Microsoft Client
  12. bartpe -c c -i ms_msclient
  13. if errorlevel 1 goto _err
  14. echo BARTPE: Starting TCPIP service
  15. net start tcpip
  16. if errorlevel 1 goto _err
  17. echo BARTPE: Starting DHCP service
  18. net start dhcp
  19. if errorlevel 1 goto _err
  20. echo BARTPE: Starting NLA service
  21. net start nla
  22. if errorlevel 1 goto _err
  23. echo BARTPE: Starting LMHOSTS service
  24. net start lmhosts
  25. if errorlevel 1 goto _err
  26. if not exist %windir%\system32\hostname.exe goto _nohost
  27. echo Getting hostname...
  28. hostname.exe
  29. :_nohost
  30. goto _end
  31. :_err
  32. echo.
  33. echo BARTPE: There was an error, script aborted!!!
  34. rem set errorlevel to 1 by (mis)using color
  35. color 00 
  36. :_end
  37.