Jump to content


Photo

Windows Directory Madness


  • Please log in to reply
5 replies to this topic

#1 neoform

neoform
  • Members
  • PipPipPip
  • Advanced Member
  • 241 posts
  • LocationMontreal

Posted 27 October 2006 - 02:29 PM

So i found out the hard way, when it comes to creating directories: mkdir()  windows systems refuse to make directories with the names "con" or "prn".. instead mkdir throws a fatal error even when you suppress them..

you can actually try this on your desktop, try making a directory with the name "con" or "prn"..

anyone know why this is?
Newsique.com Social News Network

#2 Jenk

Jenk
  • Members
  • PipPipPip
  • Advanced Member
  • 778 posts

Posted 27 October 2006 - 02:31 PM

they are reserved names, for use with filesystem management by windows.

#3 neoform

neoform
  • Members
  • PipPipPip
  • Advanced Member
  • 241 posts
  • LocationMontreal

Posted 27 October 2006 - 02:35 PM

why would the system need to reserve a name like that?
Newsique.com Social News Network

#4 arianhojat

arianhojat
  • Members
  • PipPipPip
  • Advanced Member
  • 235 posts

Posted 27 October 2006 - 02:38 PM

hah WEIRD!
i asked my sys admin and he says windows uses prn for printers and con for soemthign else.
even thoguh those folders dont seem to be hidden, they are reserved by windows?

#5 neoform

neoform
  • Members
  • PipPipPip
  • Advanced Member
  • 241 posts
  • LocationMontreal

Posted 27 October 2006 - 02:44 PM

con apparently means: com port

these are DOS limitations apparently.
Newsique.com Social News Network

#6 Jenk

Jenk
  • Members
  • PipPipPip
  • Advanced Member
  • 778 posts

Posted 27 October 2006 - 03:02 PM

google "con prn nul" for more info.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users