What Is the Command Prompt?
Command prompt หรือว่า Windows Command processor หรือที่จะรู้จักกันในชื่อ CMD เป็นการเขียนคำสั่งให้ Windows ทำงานที่เราต้องการ
ย้อนกลับไปในยุคของ PC สมัยก่อนที่จะมี GUI จะใช้ MS-DOS ในการสั่งให้คอมพิวเตอร์ทำงาน สำหรับใครที่ทัน Windows 3.1 เป็น GUI ยุคแรกๆ ของ Windows ที่จะเข้าใช้งานก็ต้องพิมคำสั่งผ่าน Command line ก่อนที่จะ GUI ได้
อีกคำที่ต้องรู้จะคือ Shell เป็นโปรแกรมที่ทำหน้าที่รับคำสั่งเพื่อให้คอมพิวเตอร์ได้ทำงานตามที่เราต้องการ ไม่ว่าจะเป็น การพิมพ์คำสั่ง หรือว่า GUI ก็เรียกได้ว่าเป็น shells เหมือนกัน
ถึงแม้ว่า Windows จะมี GUI ตั้งแต่ Windows 3.1 แต่ visual interface ของ windows ก็รันอยู่บน ระบบปฏิบัติการ DOS มาจนถึง Windows 95 และ Windows ME ก็ยังมี Ms dos ให้ใช้งาน และมีการเรียกใช้งานตลอดเวลา
เริ่มตั้งแต่ Windows XP ที่ Windows ไม่ได้รันบน MS-DOS แต่ก็ยังมี Command Prompt บน Windows ให้ผู้ใช้งานได้ใช้โดยเฉพาะการรัน batch file เพื่อให้คอมพิวเตอร์ทำงาน automating ได้อย่างง่ายดาย
ทุกวันนี้ Power User ก็ยังใช้งาน Command Prompt เพื่อช่วยในการทำงานหลายๆ อย่างแทนที่จะใช้ Mouse คลิกสิ่งต่างๆ บน GUI
Essential Run Commands for Windows
Common Windows Tools
Shortcut | Action |
---|---|
explorer | Windows Explorer |
c: | Open C: Drive |
regedit | Registry Editor |
services.msc | Windows Services (local) |
taskmgr | Task Manager |
msconfig | System Configuration Utility |
mstsc | Remote Desktop (Microsoft Terminal Services Client) |
logoff | Log Off Windows (without confirmation!) |
shutdown | Shuts Down Windows (Save all your work first) |
cmd | Command Prompt |
notepad | Notepad |
osk | On Screen keyboard |
mailto: | Open Default Mail Application |
Website address | Open entered URL in default browser |
Other Windows Tools & Utilities
Shortcut | Action |
---|---|
calc | Calculator |
chkdsk | Check Disk |
charmap | Character Map |
cleanmgr | Clean Manager – Disk Cleanup Utility |
clipbrd | Clipboard Viewer (not available after Windows XP) |
cmd | Command Prompt |
comp | Compare Files |
colorcpl | Color Management |
cttune | ClearType Text tuner |
dxdiag | Direct X Troubleshooter |
eudcedit | Private Characters Editor |
fonts | Fonts |
fsquirt | Bluetooth Transfer Wizard |
ftp | MS-DOS FTP |
iexplore | Internet Explorer |
joy.cpl | Game Controllers |
label | Volume Serial Number for C: |
magnify | Windows Magnifier |
microsoft-edge:// | Edge |
migwiz | Migration Wizard – Files and Settings Transfer Tool |
mip | Math Input Panel |
mrt | Malicious Software Removal Tool |
msiexec | Windows Installer Details |
msinfo32 | System Information |
mspaint | Paint |
narrator | Narrator |
powershell | Powershell |
shrpubw | Create a shared folder Wizard |
sigverif | File Signature Verification Tool |
sndvol | Volume Control |
snippingtool | Snipping Tools |
stikynot | Sticky Notes |
utilman | Narrator Settings |
verifier | Driver Verifier Utility |
was | Contacts |
wf.msc | Windows Firewall with Advanced Security |
wfs | Windows Fax and Scan |
wiaacmgr | Scanner |
winver | Windows Version (Check your Windows version) |
wmplayer | Windows Media Player |
write | WordPad |
xpsrchvw | XPS Viewer |
winword | Word |
Word /safe | Word Safe Mode |
Control Panel Commands
Shortcut | Action |
---|---|
appwiz.cpl | Application Wizard (Program and Features) |
control | Control Panel |
control admintools | Administrative Tools |
control color | Personalization – Color and Appearance |
control desktop | Display Properties (Personalization) |
control folders | Folders Properties |
control keyboard | Keyboard Properties |
control mouse | Mouse Properties |
control netconnections | Network Properties |
control printers | Printers Folders |
control schedtasks | Scheduled Tasks |
control update | Windows Update |
control userpasswords | Manager current User Account |
control userpasswords2 | Manager all User Accounts |
desk.cpl | Display – Screen Resolution |
devmgmt.msc | Device Manager |
firewall.cpl | Windows Firewall |
inetcpl.cpl | Internet Properties (Internet Control Panel) |
intl.cpl | Regional Settings (International) |
mmsys.cpl | Sound Properties (Multimedia System Settings) |
ncpa.cpl | Network Properties |
netplwiz | To create User Account |
powercfg.cpl | Power Configuration |
sysdm.cpl | System Properties |
timedate.cpl | Date and Time Properties |
utilman | Ease of Access Utility Manager |
wscui.cpl | Security Center (Windows Security Center UI) |
Windows Administrative Tools
Shortcut | Action |
---|---|
compmgmt.msc | Computer Management including System Tools, Storage, Services and Applications |
defrag | Defrag Command |
dcomcnfg | Component Services (Detailed Component Configuration) |
devmgmt.msc | Device Management |
diskmgmt.msc | Disk Partition Manager |
diskpart | Diskpart Command |
eventvwr.msc | Event Viewer |
fsmgmt.msc | Shared Folders (File Sharing Management) |
gpedit.msc | Group Policy Editor |
lusrmgr.msc | Local User and Groups |
perfmon.msc | Performance Monitor |
rekeywiz | File Encryption |
System File Checker Utility
Shortcut | Action |
---|---|
sfc /scannow | System File Checker Utility (Scan Immediately) |
sfc /scanonce | System File Checker Utility (Scan Once At Next Boot) |
sfc /scanboot | System File Checker Utility (Scan On Every Boot) |
sfc /revert | System File Checker Utility (Return to Default Settings) |
sfc /purgecache | System File Checker Utility (Purge File Cache) |
sfc /cachesize=x | System File Checker Utility (Set Cache Size to Size x) |
Common Environment Variables
Shortcut | Action |
---|---|
%AllUsersProfile% | Program Data |
%ProgramFiles% | Program Files |
%SystemDrive% | System Drive |
%SystemRoot% | System Root |
%Temp% | Temporary Folder |
%UserProfile% | User Profile |
%WinDir% | Windows Directory |