English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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?

2007-06-12 06:06:15 · 3 answers · asked by Anonymous in Computers & Internet Software

3 answers

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

2007-06-12 06:13:34 · answer #1 · answered by nighthawk610 3 · 0 0

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

2014-11-11 18:04:43 · answer #2 · answered by Roger 1 · 0 0

PRN is a reseved word in Windows. Try PRN1.csv

2007-06-12 13:09:45 · answer #3 · answered by ELfaGeek 7 · 0 0

fedest.com, questions and answers