(view source code of netsetfr.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 French Windows 98 versions.
NET CONFIG | FIND /I "Nom d'ordinateur" > %TEMP%.\NETCONF$.BAT
ECHO > NOM.BAT WINSET COMPUTERNAME=%%2
CALL %TEMP%.\NETCONF$.BAT
NET CONFIG | FIND /I "Nom d'utilisateur" > %TEMP%.\NETCONF$.BAT
ECHO > NOM.BAT WINSET USERNAME=%%2
CALL %TEMP%.\NETCONF$.BAT
NET CONFIG | FIND /I "Groupe de travail" > %TEMP%.\NETCONF$.BAT
ECHO > GROUPE.BAT WINSET WORKGROUP=%%3
CALL %TEMP%.\NETCONF$.BAT
DEL NOM.BAT
DEL GROUPE.BAT
DEL %TEMP%.\NETCONF$.BAT
page last modified: 2024-04-16; loaded in 0.0049 seconds