(view source code of netsetus.bat as plain text)
@ECHO OFF
REM Stores computername, user ID and Workgroup in environment
REM variables COMPUTERNAME, USERNAME and WORKGROUP in Windows
REM 98's master environment.
REM Uses WINSET, which must be located somewhere in the PATH.
REM This batch file is adapted for English Windows 98 versions.
NET CONFIG | FIND /I "Computer name" > %TEMP%.\NETCONF$.BAT
ECHO > COMPUTER.BAT WINSET COMPUTERNAME=%%2
CALL %TEMP%.\NETCONF$.BAT
NET CONFIG | FIND /I "User name" > %TEMP%.\NETCONF$.BAT
ECHO > USER.BAT WINSET USERNAME=%%2
CALL %TEMP%.\NETCONF$.BAT
NET CONFIG | FIND /I "Workgroup" > %TEMP%.\NETCONF$.BAT
ECHO > WORKGROUP.BAT WINSET WORKGROUP=%%1
CALL %TEMP%.\NETCONF$.BAT
DEL USER.BAT
DEL COMPUTER.BAT
DEL WORKGROUP.BAT
DEL %TEMP%.\NETCONF$.BAT
page last modified: 2024-04-16; loaded in 0.0086 seconds