Lm th? no ? xc ?nh lo?i OS m?t k?ch b?n ng nh?p

D?ch tiu ? D?ch tiu ?
ID c?a bi: 190899 - Xem s?n ph?m m bi ny p d?ng vo.
Bung t?t c? | Thu g?n t?t c?

TM T?T

Thng th?ng, qu?n tr? vin mu?n ch?y ph?n m?m trn ch? l cc khch hng Windows 95 ho?c Windows 98, ho?c Windows NT tr?m lm vi?c khch hng c?a h?. H? c th? khng mu?n ch?y m?t s? l?nh script ng nh?p trn my tnh Windows NT Server ho?c b? i?u khi?n vng c?a h?.

THNG TIN THM

B?ng cch s? d?ng m?t t?p tin th?c thi n gi?n v m?t t?p tin th?c thi nh?, b?n c th? cho bi?t n?u cc khch hng l a:
  • Windows 95 ho?c Windows 98 khch hng
  • Tr?m lm vi?c Windows NT
  • Windows 2000 Professional ci ?t
  • B? i?u khi?n khng tn mi?n Windows NT Server
  • B? i?u khi?n khng tn mi?n Windows 2000 Server
  • B? ki?m sot mi?n Windows NT Server
  • B? ki?m sot mi?n Windows 2000 Server
  • B? ki?m sot mi?n Windows NT doanh nghi?p/Terminal Server
  • B? i?u khi?n khng tn mi?n Windows NT doanh nghi?p/Terminal Server
Sao chp cc vn b?n sau vo m?t t?p tin th?c thi:
@echo off
REM Batch file to detect OS
REM ----------------------------------
if Windows_NT == %OS% goto WINNT
echo You are not running Windows NT (Windows 95/98 perhaps?)
goto END

:WINNT
gettype.exe

if errorlevel=9 goto FILENOTFOUND

echo You are running Windows NT.
echo More Specifically:
echo.


if ERRORLEVEL=8 goto EIGHT
if ERRORLEVEL=7 goto SEVEN
if ERRORLEVEL=6 goto SIX
if ERRORLEVEL=5 goto FIVE
if ERRORLEVEL=4 goto FOUR
if ERRORLEVEL=3 goto THREE
if ERRORLEVEL=2 goto TWO
if ERRORLEVEL=1 goto ONE

:FILENOTFOUND
echo.
echo Gettype not found.
echo.
goto END

:EIGHT
echo Windows NT Enterprise/Terminal Server Non-Domain Controller
goto END

:SEVEN
echo Windows NT Enterprise/Terminal Server Domain Controller
goto END

:SIX
echo Windows 2000 Server Domain Controller
goto END

:FIVE
echo Windows NT Server Domain Controller
goto END

:FOUR
echo Windows 2000 Server Non-Domain Controller
goto END

:THREE
echo Windows NT Server Non-Domain Controller
goto END

:TWO
echo Windows 2000 Professional installation
goto END

:ONE
echo Windows NT Workstation
goto END

:END
pause
				
Sao chp cc t?p tin Gettype.exe v t?p tin th?c thi ? cc my tr?m m?c tiu v ch?y t?p tin th?c thi.

B?n c th? c ?c Gettype.exe Phin b?n 4,0 b?ng cch ci ?t cng c? Kit Windows 2000 ti nguyn.
Gettype.exe tc ph?m c?a cu registry cho lo?i ci ?t v thi?t l?p DOS ERRORLEVEL m?t cch thch h?p:
  • Tr? v? 1 cho Windows NT Workstation.
  • Tr? v? 2 cho Windows 2000 Professional.
  • Tr? v? 3 cho b? i?u khi?n khng tn mi?n my ch? Windows NT.
  • Tr? v? 4 cho b? i?u khi?n khng tn mi?n Windows 2000 Server.
  • Tr? v? 5 cho b? ki?m sot mi?n Windows NT Server.
  • Tr? v? 6 cho b? ki?m sot mi?n Windows 2000 Server.
  • Tr? v? 7 cho b? ki?m sot mi?n Windows NT doanh nghi?p/Terminal Server.
  • Tr? v? 8 cho b? i?u khi?n khng tn mi?n Windows NT doanh nghi?p/Terminal Server.
Che o Im lang c th? ?c thi?t l?p v?i cc / s tham s?. Cng c? ny c?ng c th? ch?y ?i v?i my tnh t? xa.

Thu?c tnh

ID c?a bi: 190899 - L?n xem xt sau cng: 20 Thang Tam 2011 - Xem xt l?i: 2.0
p d?ng
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows 2000 Server
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0 Standard Edition
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows NT Server 4.0 Enterprise Edition
  • Microsoft Windows 95
T? kha:
kbenv kbhowto kbmt KB190899 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny:190899

Cung cp Phan hi

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com