August 23, 2009

NUL, CON, AUX, PRN, COM?, LPT? နာမည္ေတြနဲ႔ ကစားျခင္း

ဒီ post ေလးကိုမဖတ္ခင္ သင့္ computer (Microsoft Window တင္ထားေသာ) ထဲကတစ္ေနရာရာမွာ ေအာက္မွာေပးထားတဲ့ name ေတြထဲက နာမည္တစ္ခုခုနဲ႔ file name ဒါမွမဟုတ္ folder name ေပးၿပီး တည္ေဆာက္ၾကည့္ပါ။
NUL, CON, AUX, PRN, COM0, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT0, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9
ရၾကရဲ႕လားဗ်ာ ကြၽန္ေတာ္ေတာ့ ရဘူး၊ တေန႔ အစ္ကိုတစ္ေယာက္က ကြၽန္ေတာ့ကို con ဆိုတဲ့ folder ေလး ေဆာက္ခုိင္းၾကည့္တယ္ ဘယ္လိုမွ မရခဲ့ဘူး
ဒါနဲ႔ ထုံးစံအတုိင္း Internet ဆိုင္ေျပးရွာတာေပါ့ဗ်ာ ဘာရမလဲ ဟဲဟဲ
ခုေတာ့ေတြ႕ပါၿပီ၊ ရွင္းပါတယ္ system က သံုးေနတဲ့ နာမည္ေတြျဖစ္လို႔ပါ ပိုၿပီးအတိအက် ေျပာရရင္ေတာ့ System Device Driver အတြက္ window စၿပီဆိုတာနဲ႔ memory ထဲမွာေနရာယူထားၿပီးသားမို႔ပါ
CON - Keyboard and display (console)
PRN - System list device, usually a parallel port
AUX - Auxiliary device, usually a serial port
NUL - Bit-bucket device
COM1 - First serial communications port
COM2 - Second serial communications port
COM3 - Third serial communications port
COM4 - Fourth serial communications port
LPT1 - First parallel printer port
LPT2 - Second parallel printer port
LPT3 - Third parallel printer port
မရတဲ့ဟာကို ရေအာင္ ႀကိဳးစားနည္းလမ္းရွာၾကရေအာင္ Alt+255 တုိ႔ Alt+0160 တို႔ကေတာ့ ရိုးလြန္းပါတယ္ command prompt ထဲကေန လိုခ်င္တဲ့ ေနရာ (path) ကိုေရာက္ေအာင္သြား ဥပမာ- desktop ေပၚလုိခ်င္ရင္ C:\Documents and Settings\Administrator\Desktop> md con\ ဆိုရင္ေတာ့ administrator ရဲ desktop မွာ con ဆိုတဲ့ folder ေလးကို ေဆာက္ႏိုင္ပါတယ္ ေနာက္ဆံုးကေန backslash (\) ေလးထည့္ဖို႔ေတာ့မေမ့နဲ႔ေနာ္
md \\.\c:\con လည္းရပါတယ္ ( \\.\ ဆိုတာကေတာ့ symbolizes local system ပါ၊ c:\con ကေတာ့ path )
ျပန္ဖ်က္ခ်င္ရင္လည္း rd con\ rd \\.\c:\con နဲ႔ ဖ်က္ႏိုင္ပါတယ္ ႐ုိး႐ုိးဖ်က္လို႔ေတာ့ ရမွာမဟုတ္ပါဘူး

No comments:

Post a Comment