04 February 2016

Post တင္သူ- Unknown ဒီအခ်ိန္မွာ 10:45 PM
ကၽြန္ေတာ္သိထားတဲ့ CMD DOS COMMAND နည္းနည္းပါ
သိၿပီးသားသူေတြလည္းရွိပါတယ္ ...
မသိေသးတဲ့ သူေတြအတြက္ပဲ ရည္ရြယ္ပါတယ္ ....

ဆရာ သန္းထုိက္(ေရႊရိပ္)ရဲ႕ Dos command နွင္႔ လက္ေတြ႔အသံုးမ်ား စာအုပ္


Run Box မွာ cmd ရိုက္ထည့္လိုက္မယ္
C Directory ကိုသြားမယ္ဆို C: , D ဆိုရင္ D: စသည့္ျဖင့္ေပါ့ ....

ပထမဆံုးေျပာရရင္ .. cmd ကိုစေခၚလိုက္တာနဲ႔ စျမင္ရမွာက
C:\Documents and Settings\user name> ပါ ...
အဲဒီ Directory မွာ ဘယ္ Folder ေတြပါလည္း ၾကည့္ခ်င္ရင္

dir /a နဲ႔ ၾကည့္ရပါတယ္

အဲဒီ့ Directory တစ္ခုထဲက Folder ကို ဖြင့္ခ်င္ရင္
cd ခံထားၿပီး မိမိဖြင့္ခ်င္တဲ့ Folder Name (ဥပမာ။ ။Desktop)ေပးၿပီး ဖြင့္ရပါတယ္
C:\Documents and Settings\user name\Desktop>

ထို Folder မွ ျပန္ထြက္ခ်င္ရင္ cd.. ေရးၿပီး ျပန္ထြက္ရပါမယ္

Hidden ျဖစ္ေနတဲ့ Folder (သို႔) File ကို unhidden ေပးခ်င္တယ္ဆိုရင္
Folder Option ကေန virus ကိုက္တယ္ဆို show hidden folder ေပးလည္း မရတာေတြရွိပါတယ္

attrib -H /S /D "c:\......\folder name"

hidden ျဖစ္ေနတဲ့ Folder (သို႔) File ရွိတဲ့ Directory အျပည့္အစံုကို /D ေနာက္ကေန
ဆက္ေရးေပးရပါတယ္

Directory တစ္ခုမွာရွိတဲ့ folder ထဲက files ေတြကို တျခား Directory တစ္ခုမွာရွိတဲ့
folder ထဲကို ေျပာင္းေရႊ႕ကူးယူခ်င္တယ္ဆို ...
မိမိေျပာင္းေပးခ်င္တဲ့ Directory ကိုအရင္ဖြင့္ေပးရပါတယ္ (ဥပမာ။ ။ C: ထဲက Desktop ကိုေရႊ႕မယ္ဆို C:\Documents and Settings\user name\Desktop>
လို႔ အရင္ဖြင့္ေပးလိုက္ပါ။
ေနာက္မဆက္ၿပီး ကူးယူခ်င္တဲ့ Directory မွ folder ကိုေရးေပးရပါတယ္

xcopy /a "e:\foler name" ဟုေရးေပးရပါမယ္ ...

၂ခုေပါင္းကိုၾကည့္မယ္ဆိုရင္ေတာ့
C:\Documents and Settings\user name\Desktop>xcopy /a "e:\foler name"

အခု ကူးယူတာက unhidden files ေတြကိုပဲ ကူးယူးတာပါ။
hidden files ေတြကိုကူးမယ္ဆိုရင္ေတာ့ /h ထည့္ေပးရံုပါပဲ

xcopy /h /a "e:\foler name" ဟုေရးေပးလိုက္ပါ...

အခုက files ကိုပဲကူးတာပါ ...

ၤFolder အလိုက္ကူးမယ္ဆိုရင္ေတာ့ /s ကိုအသံုးျပဳရပါတယ္

xcopy /s "e:\folder name" လို႔ေရးေပးရပါတယ္။
ဒါကလည္း hidden မျဖစ္တဲ့ folder ကိုကူးတာပါ
hidden folder ကိုကူးမယ္ဆိုရင္ေတာ့ /h ကိုပဲထည့္ရပါတယ္

xcopy /h /s "e:\foler name" လို႔ေရးေပးရပါတယ္ ...

အဲဒီလိုကူးယူတဲ့ အခ်ိန္မွာ CMD box မွာ ကူးယူးတဲ့ files ေတြ run တာကိုျပပါတယ္ အဲဒီလို မေပၚခ်င္ရင္ေတာ့ /Q ထည့္ေပးရပါတယ္

xcopy /h /q /s "e:\foler name"
လို႔ေရးေပးရပါတယ္ ...
ANSI.SYS ------------>Defines functions that change display graphics, control cursor movement, and reassign keys.
APPEND ------------->Causes MS-DOS to look in other directories when editing a file or running a command.
ARP ------------------>Displays, adds, and removes arp information from network devices.
ASSIGN--------------->Assign a drive letter to an alternate letter.
ASSOC -------------->View the file associations.
AT ------------------->Schedule a time to execute commands or programs.
ATMADM ----------->Lists connections and addresses seen by Windows ATM call manager.
ATTRIB ------------->Display and change file attributes.
BATCH -------------->Recovery console command that executes a series of commands in a file.
BOOTCFG ---------->Recovery console command that allows a user to view, modify, and rebuild the boot.ini
BREAK --------------->Enable / disable CTRL + C feature.
CACLS --------------->View and modify file ACL's.
CALL ---------------->Calls a batch file from another batch file.
CD ------------------->Changes directories.
CHCP --------------->Supplement the International keyboard and character set information.
CHDIR ------------->Changes directories.
CHKDSK ----------->Check the hard disk drive running FAT for errors.
CHKNTFS --------->Check the hard disk drive running NTFS for errors.
CHOICE ----------->Specify a listing of multiple options within a batch file.
CLS ----------------->Clears the screen.
CMD ---------------->Opens the command interpreter.
COLOR ------------->Easily change the foreground and background color of the MS-DOS window.
COMMAND ------->Opens the command interpreter.
COMP --------------->Compares files.
COMPACT --------->Compresses and uncompress files.
CONTROL ---------->Open control panel icons from the MS-DOS prompt.
CONVERT ----------->Convert FAT to NTFS.
COPY ---------------->Copy one or more files to an alternate location.
CTTY------------------->Change the computers input/output devices.
DATE ----------------->View or change the systems date.
DEBUG -------------->Debug utility to create assembly programs to modify hardware settings.
DEFRAG ------------>Re-arrange the hard disk drive to help with loading programs.
DEL ------------------>Deletes one or more files.
DELETE --------------->Recovery console command that deletes a file.
DELTREE ------------>Deletes one or more files and/or directories.
DIR ------------------->List the contents of one or more directory.
DISABLE ------------->Recovery console command that disables Windows system services or drivers.
DISKCOMP -------->Compare a disk with another disk.
DISKCOPY --------->Copy the contents of one disk and place them on another disk.
DOSKEY ------------->Command to view and execute commands that have been run in the past.

DOSSHELL ---------->A GUI to help with early MS-DOS users.
DRIVPARM---------->Enables overwrite of original device drivers.
ECHO ----------------->Displays messages and enables and disables echo.
EDIT ----------------->View and edit files.
EDLIN --------------->View and edit files.
EMM386 ----------->Load extended Memory Manager.
ENABLE--------------->Recovery console command to enable a disable service or driver.
ENDLOCAL --------->Stops the localization of the environment changes enabled by the setlocal command.
ERASE ------------->Erase files from computer.
EXIT ---------------->Exit from the command interpreter.
EXPAND ---------->Expand a Microsoft Windows file back to it's original format.
EXTRACT ---------->Extract files from the Microsoft Windows cabinets.
FASTHELP -------->Displays a listing of MS-DOS commands and information about them.
FC ------------------->Compare files.
FDISK -------------->Utility used to create partitions on the hard disk drive.
FIND ---------------->Search for text within a file.
FINDSTR------------>Searches for a string of text within a file.
FIXBOOT ----------->Writes a new boot sector.
FIXMBR ------------>Writes a new boot record to a disk drive.
FOR ------------------>Boolean used in batch files.
FORMAT ----------->Command to erase and prepare a disk drive.
FTP ------------------>Command to connect and operate on a FTP server.
FTYPE---------------->Displays or modifies file types used in file extension associations.
GOTO --------------->Moves a batch file to a specific label or location.
GRAFTABL--------->Show extended characters in graphics mode.
HELP ---------------->Display a listing of commands and brief explanation.
IF --------------------->Allows for batch files to perform conditional processing.
IFSHLP.SYS ------>32-bit file manager.
IPCONFIG --------->Network command to view network adapter settings and assigned values.
KEYB ---------------->Change layout of keyboard.
LABEL ------------->Change the label of a disk drive.
LH ------------------->Load a device driver in to high memory.
LISTSVC----------->Recovery console command that displays the services and drivers.
LOADFIX ---------->Load a program above the first 64k.
LOADHIGH ------->Load a device driver in to high memory.
LOCK --------------->Lock the hard disk drive.
LOGON ------------>Recovery console command to list installations and enable administrator login.
MAP---------------->Displays the device name of a drive.
MD ---------------->Command to create a new directory.
MEM --------------->Display memory on system.
MKDI ------------->Command to create a new directory.
MODE------------->Modify the port or display settings.
MORE------------->Display one page at a time.
MOVE ------------>Move one or more files from one directory to another directory.
MSAV ------------>Early Microsoft Virus scanner.
MSD -------------->Diagnostics utility.
MSCDEX -------->Utility used to load and provide access to the CD-ROM.
NBTSTAT-------->Displays protocol statistics and current TCP/IP connections using NBT
NET ------------->Update, fix, or view the network or network settings
NETSH ---------->Configure dynamic and static network information from MS-DOS.
NETSTAT ------>Display the TCP/IP network protocol statistics and information.
NLSFUNC------->Load country specific information.
NSLOOKUP--->Look up an IP address of a domain or host on a network.
PATH --------->View and modify the computers path location.
PATHPING --->View and locate locations of network latency.
PAUSE -------->Command used in batch files to stop the processing of a command.
PING ----------->Test / send information to another network computer or network device.
POPD------------>Changes to the directory or network path stored by the pushd command.
POWER -------->Conserve power with computer portables.
PRINT ---------->Prints data to a printer port.
PROMPT ------>View and change the MS-DOS prompt.
PUSHD --------->Stores a directory or network path in memory so it can be >returned to at any time.
QBASIC ------->Open the QBasic.
RD -------------->Removes an empty directory.
REN ------------>Renames a file or directory.
RENAME ------>Renames a file or directory.
ROUTE --------->View and configure windows network route tables.
RUNAS -------->Enables a user to execute a program on another computer.
SCANDISK --->Run the scandisk utility.
SCANREG ---->Scan registry and recover registry from errors.
SET ------------->Change one variable or string to another.
SETLOCAL----->Enables local environments to be changed without affecting anything else.
SETVER ------->Change MS-DOS version to trick older MS-DOS programs.
SHARE -------->Installs support for file sharing and locking >capabilities.
SHIFT ---------->Changes the position of replaceable parameters in a batch program.
SHUTDOWN -->Shutdown the computer from the MS-DOS prompt.
SMARTDRV ---->Create a disk cache in conventional memory or extended memory.
SORT ------------->Sorts the input and displays the output to the screen.
START ----------->Start a separate window in Windows from the MS-DOS prompt.
SUBST ----------->Substitute a folder on your computer for another drive
letter.
SWITCHES ----->Remove add functions from MS-DOS.
SYS --------------->Transfer system files to disk drive.
TELNET ---------->Telnet to another computer / device from the prompt.
TIME ------------->View or modify the system time.
TITLE------------->Change the title of their MS-DOS window.
TRACERT ------>Visually view a network packets route across a network.
TREE ------------>View a visual tree of the hard disk drive.
TYPE-------------->Display the contents of a file.
UNDELETE ---->Undelete a file that has been deleted.
UNFORMAT ---->Unformat a hard disk drive.
UNLOCK --------->Unlock a disk drive.
VER ------------->Display the version information.

VERIFY --------->Enables or disables the feature to determine if files have been written properly.

VOL ------------->Displays the volume information about the designated drive.

XCOPY ------->Copy multiple files, directories, and/or drives from one location to another.
Shutdown တြဲသံုးတဲ့ command ေတြကုိ ေျပာၾကည့္မယ္။

shutdown [-i|-l|-s|-r|-a] [-f] [-t xx] [-c "Text"]
shutdown နဲ႕ တြဲသံုးလို႕ ရတဲ့ command ေတြကို စုစည္းၿပီးျပထားတာပါ ။

-a = တကယ္လို႕ မိမိက -t xx ဆိုတဲ့ အခ်ိန္အတိုင္းအတာ တစ္ခုကို ေပးထားမယ္ဆိုရင္ အဲဒါကို ပ်က္ခ်င္ရင္ -a နဲ႕ သံုးတာပါ။အခ်ိန္တန္ဖိုး 0 ဆိုရင္ေတာ့ တစ္ခါတည္း shutdown ေပ့ါ။
-c “Text” = ဒါကေတာ့ shutdown ေပးရင္ comment ေပးခ်င္ရင္သံုးတာပါ။
-i = shutdown interface(GUI) ကုိေဖာ္ျပတာပါ။
-l = ဒါက Log off လုပ္တဲ့ command ပါ။
-s = ဒါက shutdown ေပါ့ ။
-r = restart ပါ။
-t xx = ဒါက shutdown လုပ္ရင္ အခ်ိန္သတ္မွာတာပါ ။ တကယ္လို႕ xx ကုိ 5 လို႕ ထားရင္ 5 seconds မွာ ကြန္ပ်ဴတာ shutdown ျဖစ္မွာပါ။
-f = ဒါကေတာ့ ဘာ သတိေပးခ်က္မွ မလာပဲ တစ္ခါတည္းကုိ application ေတြကို ပိတ္ပစ္တာပါ။

Shutdown –s –c “Shutting Down!” –t 3
ဒါဟာဆိုရင္ ေနာက္ ၃ စကၠန္႕မွာ shutdown က်မွာျဖစ္ၿပီး Shutting Down! ဆိုတဲ့ မက္ေဆ့ ေပၚလာမွာပါ ။

systeminfo
ဒါကေတာ့ မိမိ OS ရဲ႕ information ေတြကို ေဖာ္ျပေပးတဲ့ command ပါ။ ဘယ္ service pack levels ကိုသံုးထားလဲ၊ ဘယ္ေန႕ မွာ ၀င္ဒုိးစတင္တာလဲ ၊ Memory ဘယ္ေလာက္လဲ ၊ ဘာညာေပါ့ ၾကည့္လုိ႕ ရပါတယ္။

ipconfig
ဒါကေတာ့ TCP/IP ေတြကို ၾကည့္လုိ႕ ရတဲ့ command ပါ။
TCP/IP information အားလံုးကုိၾကည့္ခ်င္ရင္ေတာ့ ipconfig /all
Local DNS cache ကုိ ၾကည့္၇င္ေတာ့ ipconfig /displaydns
Local DNS cache ထဲက content ေတြကုိ ဖ်က္ခ်င္ရင္ေတာ့ ipconfig /fulshdns ကုိထည့္ၿပီးသံုးနုိင္ပါတယ္

tasklist and taskkill
Window Task Manager နဲ႕ တူပါတယ္ ။ လက္ရွိ run ေနတဲ့ process တို႕ ဘာတို႕ ကို ေဖာ္ျပေပးပါတယ္။
Taskill ကေတာ့ process ေတြကို ပိတ္ခ်င္ရင္ သံုးတာပါ ။ Task Manager မွာ End Porcess နဲ႕ တူပါတယ္။
ဥပမာ notepad ဆိုပါစုိ႕ ။ ပိတ္ခ်င္ရင္
TASKKILL /IM notepad.exe
ဒါမွမဟုတ္ သံုးေလးခု ၿပိဳင္တူပိတ္ခ်င္ရင္ေတာ့ (/PID) နဲ႕ သံုးပါတယ္။
TASKKILL /PID 1230 /PID 750 /PID 487 /T နဲ႕ သံုးခုလံုး ျပိဳင္တူပိတ္လို႕ ၇ပါတယ္ ။ ဒီေနရာမွာ (/PID) ဆိုတာ PID Sessiong Name ပဲျဖစ္ပါတယ္။

nslookup
ဒါကေတာ့ DNS(Domain name Servive) ရဲ႕ IP Address ကုိေဖာ္ျပေပးတာပါ။

ping
ping myanmarfamily.org –t ဆိုရင္ ျမန္မာမိသားစုဖိုရမ္ရဲ႕ DNS IP ကိုေဖာ္ျပေပးယံုသာမက မိမိရဲ႕ connection ေကာင္းမေကာင္းကိုလဲ ေဖာ္ျပေပးပါတယ္ ။
အခ်ိန္တိုင္း reply လာရင္ ေကာ္နက္ရွင္ေကာင္းၿပီးေတာ့ time out ျဖစ္ေနရင္ေတာ့ ေကာ္နက္ရွင္က်ေနပါၿပီး ။
တစ္ခါတစ္ေလ ဂ်ီေတာ့ဖြင့္ထားၿပီး မီးစိမ္းလင္းေနေပမဲ့ မိမိဘက္က ေအာ့ဖ္ေနတာကို မသိျဖစ္တတ္ပါတယ္။
ဘယ္သူ႕ ဘက္ကေအာ့ဖ္ေနတယ္ဆိုတာ အဲဒီလုိ ရုိက္ၿပိးလဲ စမ္းလို႕ ရပါတယ္။
Firefox,IE,Opera တို႔ရဲ့ keyboard shortcuts key မ်ား

Firefox
IE6.0
Opera
လုပ္ေဆာင္ခ်က္မ်ား

Ctrl+D
Ctrl+D
Ctrl+T
bookmarkထဲသို႔ ထည့္ေပးမည္။ ေနာက္ကို ျပန္သြားမည္။
Ctrl+I
Ctrl+I
F4
bookmark လုပ္ေပးမည္။

Ctrl+W
(tab မရွိပါ )
Ctrl+W
tab ပိတ္ေပးမည္။

Ctrl+Shift+W
Ctrl+W
Ctrl+W
windows ကိုပိတ္ေပးမည္။

Ctrl+Enter
Ctrl+Enter
Enter
(.com) domain ေပါင္းထည့္ေပးမည္။
Shift+Enter