Wednesday, 23 February 2011

How to create folder name which can't be created Normally


Folders with name: CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5,COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, & LPT9 can’t be created using Windows Explorer or Command Prompt directly!
( Try this out.. right click on your desktop and try creating folder named "con"it changes back to "new Folder") )

Try this: CREATION


Syntax:md \\.\\$path
Example:prompt>md \\.\\C:\con
Explanation: This would create a folder named "con" on your "C Drive"

Similarly to delete such folder:
DELETION
Syntax:rd/s \\.\\$path
Example:prompt>rd/s \\.\\C:\con
Explanation: This would remove the folder named "con"!
Note: rd(Remove Directory) command is used with "/s" switch as otherwise it
would give error that "folder is not empty"!

On another hand...if you ever wondered how to create a folder with no name...then try this:

Create a New Folder from Windows Explorer
Select rename & type: "ALT+255"  or type: ALT+0160(Use Numpad)..thats it!

No comments:

Post a Comment

Twitter Bird Gadget