Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for netsetnl.bat

(view source code of netsetnl.bat as plain text)

  1. @ECHO OFF
  2. REM Stores computername, user ID and Workgroup in environment
  3. REM variables COMPUTERNAME, USERNAME and WORKGROUP in Windows
  4. REM 98's master environment.
  5. REM Uses WINSET, which must be located somewhere in the PATH.
  6. REM This batch file is adapted for Dutch Windows 98 versions.
  7.  
  8. NET CONFIG | FIND /I "COMPUTERNAAM" > %TEMP%.\NETCONF$.BAT
  9. ECHO > COMPUTERNAAM.BAT WINSET COMPUTERNAME=%%1
  10. CALL %TEMP%.\NETCONF$.BAT
  11. DEL COMPUTERNAAM.BAT
  12.  
  13. NET CONFIG | FIND /I "GEBRUIKERSNAAM" > %TEMP%.\NETCONF$.BAT
  14. ECHO > GEBRUIKERSNAAM.BAT WINSET USERNAME=%%1
  15. CALL %TEMP%.\NETCONF$.BAT
  16. DEL GEBRUIKERSNAAM.BAT
  17.  
  18. NET CONFIG | FIND /I "WERKGROEP" > %TEMP%.\NETCONF$.BAT
  19. ECHO > WERKGROEP.BAT WINSET WORKGROUP=%%1
  20. CALL %TEMP%.\NETCONF$.BAT
  21. DEL WERKGROEP.BAT
  22.  
  23. DEL %TEMP%.\NETCONF$.BAT
  24.  

page last uploaded: 2017-08-21, 14:26