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

ShortcutAction
explorerWindows Explorer
c:Open C: Drive
regeditRegistry Editor
services.mscWindows Services (local)
taskmgrTask Manager
msconfigSystem Configuration Utility
mstscRemote Desktop (Microsoft Terminal Services Client)
logoffLog Off Windows (without confirmation!)
shutdownShuts Down Windows (Save all your work first)
cmdCommand Prompt
notepadNotepad
oskOn Screen keyboard
mailto:Open Default Mail Application
Website addressOpen entered URL in default browser

Other Windows Tools & Utilities

ShortcutAction
calcCalculator
chkdskCheck Disk
charmapCharacter Map
cleanmgrClean Manager – Disk Cleanup Utility
clipbrdClipboard Viewer (not available after Windows XP)
cmdCommand Prompt
compCompare Files
colorcplColor Management
cttuneClearType Text tuner
dxdiagDirect X Troubleshooter
eudceditPrivate Characters Editor
fontsFonts
fsquirtBluetooth Transfer Wizard
ftpMS-DOS FTP
iexploreInternet Explorer
joy.cplGame Controllers
labelVolume Serial Number for C:
magnifyWindows Magnifier
microsoft-edge://Edge
migwizMigration Wizard – Files and Settings Transfer Tool
mipMath Input Panel
mrtMalicious Software Removal Tool
msiexecWindows Installer Details
msinfo32System Information
mspaintPaint
narratorNarrator
powershellPowershell
shrpubwCreate a shared folder Wizard
sigverifFile Signature Verification Tool
sndvolVolume Control
snippingtoolSnipping Tools
stikynotSticky Notes
utilmanNarrator Settings
verifierDriver Verifier Utility
wasContacts
wf.mscWindows Firewall with Advanced Security
wfsWindows Fax and Scan
wiaacmgrScanner
winverWindows Version (Check your Windows version)
wmplayerWindows Media Player
writeWordPad
xpsrchvwXPS Viewer
winwordWord
Word /safeWord Safe Mode

Control Panel Commands

ShortcutAction
appwiz.cplApplication Wizard (Program and Features)
controlControl Panel
control admintoolsAdministrative Tools
control colorPersonalization – Color and Appearance
control desktopDisplay Properties (Personalization)
control foldersFolders Properties
control keyboardKeyboard Properties
control mouseMouse Properties
control netconnectionsNetwork Properties
control printersPrinters Folders
control schedtasksScheduled Tasks
control updateWindows Update
control userpasswordsManager current User Account
control userpasswords2Manager all User Accounts
desk.cplDisplay – Screen Resolution
devmgmt.mscDevice Manager
firewall.cplWindows Firewall
inetcpl.cplInternet Properties (Internet Control Panel)
intl.cplRegional Settings (International)
mmsys.cplSound Properties (Multimedia System Settings)
ncpa.cplNetwork Properties
netplwizTo create User Account
powercfg.cplPower Configuration
sysdm.cplSystem Properties
timedate.cplDate and Time Properties
utilmanEase of Access Utility Manager
wscui.cplSecurity Center (Windows Security Center UI)

Windows Administrative Tools

ShortcutAction
compmgmt.mscComputer Management including System Tools, Storage, Services and Applications
defragDefrag Command
dcomcnfgComponent Services (Detailed Component Configuration)
devmgmt.mscDevice Management
diskmgmt.mscDisk Partition Manager
diskpartDiskpart Command
eventvwr.mscEvent Viewer
fsmgmt.mscShared Folders (File Sharing Management)
gpedit.mscGroup Policy Editor
lusrmgr.mscLocal User and Groups
perfmon.mscPerformance Monitor
rekeywizFile Encryption

System File Checker Utility

ShortcutAction
sfc /scannowSystem File Checker Utility (Scan Immediately)
sfc /scanonceSystem File Checker Utility (Scan Once At Next Boot)
sfc /scanbootSystem File Checker Utility (Scan On Every Boot)
sfc /revertSystem File Checker Utility (Return to Default Settings)
sfc /purgecacheSystem File Checker Utility (Purge File Cache)
sfc /cachesize=xSystem File Checker Utility (Set Cache Size to Size x)

Common Environment Variables

ShortcutAction
%AllUsersProfile%Program Data
%ProgramFiles%Program Files
%SystemDrive%System Drive
%SystemRoot%System Root
%Temp%Temporary Folder
%UserProfile%User Profile
%WinDir%Windows Directory

Leave a Reply