neoform Posted October 27, 2006 Share Posted October 27, 2006 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? Quote Link to comment Share on other sites More sharing options...
Jenk Posted October 27, 2006 Share Posted October 27, 2006 they are reserved names, for use with filesystem management by windows. Quote Link to comment Share on other sites More sharing options...
neoform Posted October 27, 2006 Author Share Posted October 27, 2006 why would the system need to reserve a name like that? Quote Link to comment Share on other sites More sharing options...
arianhojat Posted October 27, 2006 Share Posted October 27, 2006 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? Quote Link to comment Share on other sites More sharing options...
neoform Posted October 27, 2006 Author Share Posted October 27, 2006 con apparently means: com portthese are DOS limitations apparently. Quote Link to comment Share on other sites More sharing options...
Jenk Posted October 27, 2006 Share Posted October 27, 2006 google "con prn nul" for more info. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.