IT Community - Software Programming, Web Development and Technical Support

CON Folder in Windows

This is a discussion on CON Folder in Windows within the Server Management forums, part of the Servers and Hosting category; CON Folder in Windows Here is a small trick you can use to impress your friends Ask them to make ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Servers and Hosting > Server Management

Register FAQ Members List Calendar Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 12-01-2007, 03:24 AM
Sabari Sabari is offline
D-Web Genius
 
Join Date: Jul 2007
Posts: 1,008
Sabari is on a distinguished road
Default CON Folder in Windows

CON Folder in Windows

Here is a small trick you can use to impress your friends

Ask them to make a folder in and drive names 'CON', they wont be able to create is ("com1" "lpt1" "com2" ... it shouldn't work either!)

Now here is how you can do it

To make it in C:> type "mkdir \\.\c:\con"

To remove the folder, type "rmdir \\.\c:\con"

Easy... Isnt it?
__________________
Thanks & Regards
Sabari...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-01-2007, 03:40 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default Re: CON Folder in Windows

CON Folder in Windows

Con is a reserved system device. So you can't name a folder that. The same applies to other reserved system device names as well, like LPT1, COM1, and the like. and also

you cannot name folders as aux, prn and nul as well. Althugh not too sure but they look like reserved filenames or system filenames.


ThankQ
KiruthikaSambandam

Last edited by KiruthikaSambandam : 12-01-2007 at 04:02 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/server-management/4616-con-folder-windows.html
Posted By For Type Date
DiscussWeb IT Community - Technical Support and Technology Discussions This thread Refback 12-01-2007 03:31 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
pagination for a folder? saravanan PHP Programming 0 03-21-2008 05:53 AM
How can I rename all files in a folder using Java? leoraja8 Java Programming 4 11-13-2007 12:15 AM
Can we put the reference dll in to a specific folder? amansundar C# Programming 3 10-29-2007 12:51 AM
How to find whether a folder exists or not using c#? kingmaker C# Programming 2 08-23-2007 01:52 AM
Using C# and VB.NET classes together in the App_Code folder Gopisoft VB.NET Programming 0 07-17-2007 10:39 PM


All times are GMT -7. The time now is 02:26 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0