PCName ändern
Dieses Script ändert den Computernamen
|
Script: |
@Echo Off
If %1'==' Goto Get
If Not %1'==/?' Goto Set
Echo Ändert den Computernamen.
Echo.
Echo [Call] ComputerName
Goto End
:Get
Set | Find "winbootdir=" > NUL
If ErrorLevel 1 For %%C In (Echo Goto:End) Do %%C Win9x bat file
Set COMPUTERNAME=
Start /Wait Regedit /E %TEMP%.\Tmp.bxt HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName
Find "=" < %TEMP%.\Tmp.bxt > %TEMP%.\Tmp.bat
%TEMP%.\Tmp.bat
:Set
For %%V In (%1) Do Set COMPUTERNAME=%%V
Del %TEMP%.\Tmp.b?t
:End
|
|