March 11th, 2005, 05:42 AM
Not able to create folders
Hi guys im not able to create folders with folder names either nul or aux it is saying that a file with the specified name already exists why is this happening
March 11th, 2005, 05:47 AM
We need more information like, Which Operating system are you running?
March 11th, 2005, 05:53 AM
Im using Windows 2000 Professional
March 11th, 2005, 07:57 AM
Probably becasue they are commands. It would confuse the system to try and oepn a "nul" file or an "aux" file.
March 11th, 2005, 04:50 PM
It is nothing wrong with your system, I have just tested it on a Win2000 Pro box and got the same message.
Actually it is not just Win2000, as I got exactly the same on Win ME as well.
They are obviously prohibited filenames, as you cannot create them on a totally separate hard drive either. nul1, aux1 and so on are quite acceptable.
I think it is a case of the error message being misleading, as the files/folders do not exist, and even if they did, Windows would let you create duplicates on a separate drive or partition ?
Just out of curiosity, why do you want to use those names?
March 11th, 2005, 05:36 PM
From the mouth of Microsoft:
Several special file names are reserved by the system and cannot be used for files or folders:
CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL
March 11th, 2005, 06:13 PM
The Nul/Aux/Etc file names are actually command line driven programs. If you want to create a folder with one of the two names that you specified you need to create it through the command prompt. Also possible to create a batch file that will create the new directory but it more work than it is worth. I'll post back when i find what commands you need to use to create the directory.
Life is like an incessant series of problems, all difficult, with brutal choices, and a time limit. The worst thing you can do is to make no choice, waiting for the ideal conclusion to present itself. The conclusion has to come from yourself. A formed idea that you know the difference between right an wrong.
March 13th, 2005, 01:48 AM
They are devices. con is the console, aux is the serial port,
and nul is the infamous "bit bucket". Everything redirected to it
In a batch file, if you don't want the output of a command to appear
on the screen, just append >nul to the command.
The output from the dir command will not appear.
So you can't create any files or folders with any of those reserved names.
It's a legacy of MSDOS.
I came in to the world with nothing. I still have most of it.