Skip to main content

windows can't creat folder named "con"

More
19 years 2 weeks ago #10692 by apit
ermmm..
i just guest the "con" is variable for the operating system
maybe wrong understanding.. :wink:
More
19 years 2 weeks ago #10697 by Arani
Replied by Arani on topic ok
yes..um well whatever way you look at it, all those names i told you about earlier, are reserved. a user cannot name anything on their system using those names. this is to protect certain system integrity as the system itself uses those names to access or manipulate variables, or data for its own use.

Picking pebbles on the shore of the networking ocean
More
19 years 2 weeks ago #10699 by jhun
actually con, and all the other words mentioned are all reserved DOS reserved words. but if you really want to make a con folder try this one out using the command prompt:
[code:1]

##to create the con folder
C:\mkdir \\.\c:\con

##to delete this directory

C:\rd /S /Q \\.\c:\con

[/code:1]

hope this helps
More
19 years 2 weeks ago #10704 by apit
jhun..nice info

can you explain how the command work?
More
19 years 2 weeks ago #10706 by jhun
actually it is like tricking the OS. back in the early days when someone tries to create a "con" folder using the code it would crash their system since the word used is a reserved DOS word. if you would look at the code carefully you would see that it is like creating a folder across a network but actually reverts back to the root drive of the local machine. the "\\." is like a UNC path to the local machine which probably somehow allows the user to create folders with reserved DOS parameters as names.
More
18 years 10 months ago #12115 by gainil
Nice Info JHun !!

i was able to make a folder named con on the c:\

but if u try to change into the folder from dosprompt it simply says "The system cannot find the path specified". Was able to browse the folder from windows explorer, but not able to copy anything into it it says "Access is deined ! Disk is full or write protected" cant even delete from windows unless used the dos command sent by u.

anyways great piece of info

Cheers :)
Time to create page: 0.135 seconds