Question:
Strange Error on Windows XP?
anonymous
2007-06-12 10:06:15 UTC
I am programming an application to save out some files. One of them is named "PRN.csv" I get an error in Windows saying that this file already exists. I have checked and the folder that I am trying to save it in and it is completely empty. This happens no matter what directory I try to save it in. If I try to save the file from Excel, it gives me an error saying the filename is a reserved device name. I have never heard of anything like this happening. I searched the registry and found nothing with "PRN.csv" Does anyone know what the problem could be?
Three answers:
nighthawk610
2007-06-12 10:13:34 UTC
Windows (DOS as well) has a group of reserved words that you cannot name files regardless of their extension. Here are some that I know of...



CON, PRN, AUX, CLOCK$, NUL

COM0, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9

LPT0, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9
Roger
2014-11-11 23:04:43 UTC
try changing an existing file name to "a.csv".

If you get an error then you cannot use that ext on your PC's configuration
ELfaGeek
2007-06-12 17:09:45 UTC
PRN is a reseved word in Windows. Try PRN1.csv


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...