Showing posts with label MSDOS. Show all posts
Showing posts with label MSDOS. Show all posts
Wednesday, January 27, 2010
Wednesday, September 2, 2009
Using If ErrorLevel & net start on batch file
@echo off &setlocal
VER | find "NT" > nul
IF not errorlevel 1 GOTO :s_win_NT
VER | find "2000" > nul
IF not errorlevel 1 GOTO :s_win_2000
VER | find "98" > nul
IF not errorlevel 1 GOTO :s_win_98
VER | find "ME" > nul
IF not errorlevel 1 GOTO :s_win_ME
VER | find "95" > nul
IF not errorlevel 1 GOTO :s_win_95
GOTO :s_unknown_os
:s_win_NT
echo This computer uses Windows NT Operating System
net start "InterBase Server"
goto :bye
:s_win_2000
echo This computer uses Windows 2000 Operating System
net start "InterBase Server"
goto :bye
:s_win_98
echo This computer uses Windows 98 Operating System
echo Please restart the computer
echo off
rem "C:\Program Files\CDIS Offline\InterBase\bin\IBGuard.exe"
goto :bye
:s_win_95
echo This computer uses Windows 95 Operating System
echo Please restart the computer
echo off
rem "C:\Program Files\CDIS Offline\InterBase\bin\IBGuard.exe"
goto :bye
:s_win_ME
echo This computer uses Windows ME Operating System
goto :bye
:s_unknown_os
echo Unknown Operating System
goto :bye
:bye
VER | find "NT" > nul
IF not errorlevel 1 GOTO :s_win_NT
VER | find "2000" > nul
IF not errorlevel 1 GOTO :s_win_2000
VER | find "98" > nul
IF not errorlevel 1 GOTO :s_win_98
VER | find "ME" > nul
IF not errorlevel 1 GOTO :s_win_ME
VER | find "95" > nul
IF not errorlevel 1 GOTO :s_win_95
GOTO :s_unknown_os
:s_win_NT
echo This computer uses Windows NT Operating System
net start "InterBase Server"
goto :bye
:s_win_2000
echo This computer uses Windows 2000 Operating System
net start "InterBase Server"
goto :bye
:s_win_98
echo This computer uses Windows 98 Operating System
echo Please restart the computer
echo off
rem "C:\Program Files\CDIS Offline\InterBase\bin\IBGuard.exe"
goto :bye
:s_win_95
echo This computer uses Windows 95 Operating System
echo Please restart the computer
echo off
rem "C:\Program Files\CDIS Offline\InterBase\bin\IBGuard.exe"
goto :bye
:s_win_ME
echo This computer uses Windows ME Operating System
goto :bye
:s_unknown_os
echo Unknown Operating System
goto :bye
:bye
Monday, June 15, 2009
Melihat PID command DOS
Perintah yang hanya berfungsi pada Windows XP, gunakan perintah berikut
C:\tasklist
Untuk referensi yang lain, silakan kunjungi
http://www.infocellar.com/winxp/DOS-with-XP.htm
http://www.networkclue.com/os/Windows/commands/
C:\tasklist
Untuk referensi yang lain, silakan kunjungi
http://www.infocellar.com/winxp/DOS-with-XP.htm
http://www.networkclue.com/os/Windows/commands/
| ![]() |
![]() |
![]() |
Subscribe to:
Posts (Atom)
