من طرف Chalmers السبت ديسمبر 06, 2008 11:57 am
السلام عليكم
هذا الموضوع كان سبب في تسجيلي في هذا المنتدى و ارجو ان نفيد و نستفيد
باختصار هناك كلمات محجوزة في الدوس و بعضها كلمات محجوزة للويندوز
which stand for CONsole, PRiNter, NULl, serial COMmmunication ports, Line PrinTer ports
و لا يمكن انشاء او تسمية ملفات بهذا الاسم و مثلها مثل اسماء البورتات و المنافذ و المخارج و منها
CON, PRN, AUX, CLOCK$, NUL
COM0, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9
LPT0, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9.
DOS uses different names for the attached devices, I learnt. PRN was one such name. TYPE filename would display the contents of a file and TYPE filename > PRN would print it instead of displaying. Curiosity brings many hidden matters out. PRN would surely mean Printer and will redirect the output to the printer instead of console. Console (monitor) is the implicit default output device, and it can be bypassed if needed. So, how to put it explicitly? There must be some means to do that. Yes, there is! TYPE filename > CON performs exactly same function as TYPE filename. These special names for the devices really mean something special for the operating system and those names can not be used as folder or file names: CON, PRN, NUL, COM1 to COM9, LPT1 to LPT9, which stand for CONsole, PRiNter, NULl, serial COMmmunication ports, Line PrinTer ports.
و بارك الله فيكم