Anlage des Repos
This commit is contained in:
61
test/test.cmd
Normal file
61
test/test.cmd
Normal file
@@ -0,0 +1,61 @@
|
||||
@echo off
|
||||
|
||||
@echo off
|
||||
|
||||
VER |find /i "Windows 95" >NUL
|
||||
IF NOT ERRORLEVEL 1 GOTO 9598ME
|
||||
VER |find /i "Windows 98" >NUL
|
||||
IF NOT ERRORLEVEL 1 GOTO 9598ME
|
||||
VER |find /i "Windows Millennium" >NUL
|
||||
IF NOT ERRORLEVEL 1 GOTO 9598ME
|
||||
VER | find "XP" > nul
|
||||
IF %errorlevel% EQU 0 GOTO XP
|
||||
VER | find "Microsoft Windows 2000" > NUL
|
||||
IF %errorlevel% EQU 0 GOTO 2000
|
||||
VER | find "NT" > nul
|
||||
IF %errorlevel% EQU 0 GOTO NT
|
||||
VER | find "Microsoft Windows [Version 6.1" > nul
|
||||
IF %errorlevel% EQU 0 GOTO Sieben
|
||||
VER | find "Microsoft Windows [Version 6" > nul
|
||||
IF %errorlevel% EQU 0 GOTO Vista
|
||||
VER | find "Microsoft Windows [Version 5" > nul
|
||||
IF %errorlevel% EQU 0 GOTO 2003
|
||||
goto unknown
|
||||
goto end
|
||||
|
||||
:unknown
|
||||
echo MsgBox "Betriebssystem unbekannt", VbInformation + VbOKOnly, "Ihr Betriebssystem" >%TEMP%\os.vbs
|
||||
goto end
|
||||
|
||||
:9598ME
|
||||
echo MsgBox "Sie benutzten 95, 98 oder ME", VbInformation + VbOKOnly, "Ihr Betriebssystem" >%TEMP%\os.vbs
|
||||
goto end
|
||||
|
||||
:NT
|
||||
echo MsgBox "Sie benutzten Windows NT", VbInformation + VbOKOnly, "Ihr Betriebssystem" >%TEMP%\os.vbs
|
||||
goto end
|
||||
|
||||
:2003
|
||||
echo MsgBox "Sie benutzten Windows 2003", VbInformation + VbOKOnly, "Ihr Betriebssystem" >%TEMP%\os.vbs
|
||||
goto end
|
||||
|
||||
:2000
|
||||
echo MsgBox "Sie benutzten Windows 2000", VbInformation + VbOKOnly, "Ihr Betriebssystem" >%TEMP%\os.vbs
|
||||
goto end
|
||||
|
||||
:XP
|
||||
echo MsgBox "Sie benutzten Windows XP", VbInformation + VbOKOnly, "Ihr Betriebssystem" >%TEMP%\os.vbs
|
||||
goto end
|
||||
|
||||
:Vista
|
||||
echo MsgBox "Sie benutzten Windows Vista oder Windows 7 RC", VbInformation + VbOKOnly, "Ihr Betriebssystem" >%TEMP%\os.vbs
|
||||
goto end
|
||||
|
||||
:Sieben
|
||||
echo MsgBox "Sie benutzten Windows 7 ", VbInformation + VbOKOnly, "Ihr Betriebssystem" >%TEMP%\os.vbs
|
||||
goto end
|
||||
|
||||
:end
|
||||
START %TEMP%\os.vbs
|
||||
ping 1.2.3.4 -n 1 -w 5000 > nul
|
||||
del /f %TEMP%\os.vbs
|
||||
Reference in New Issue
Block a user