Microsoft KB Archive/66032

{| = File Saved as CON, AUX, or PRN Hangs Excel =
 * width="100%"|

Last reviewed: November 2, 1994

Article ID: Q66032

SUMMARY
If you try to save a file as &quot;CON&quot;, &quot;AUX&quot;, or &quot;PRN&quot; with any extension from Excel for Windows version 2.10d or earlier, the system hangs. These are reserved filenames in DOS; therefore, they cannot be used as filenames in applications.

In Excel for Windows version 3.00, attempting to save a file as &quot;CON&quot;, or &quot;AUX&quot; will produce the message, &quot;Filename is not Valid&quot;. Attempting to save a file as &quot;PRN&quot; will produce the message, &quot;Cannot Access 'PRN.XLS'.

The following are possible error messages in other Windows applications such as Word for Windows, Notepad, Paintbrush, Write, etc., where is the extension appropriate for that application:


 * 1) Replace existing CON. ?
 * 2) Overwrite existing CON. ?
 * 3) Unable to write file to disk; check to determine if the file or disk is damaged.
 * 4) System error. Cannot write to device AUX. Retry, Cancel
 * 5) Cannot write file; check to see if your disk is full.
 * 6) Cannot access document.

MORE INFORMATION
The following was taken from the Microsoft Press book, &quot;The MS-DOS Encyclopedia&quot;:

MS-DOS makes input and output device-independent by treating peripheral devices as if they were files. To do this, it assigned a reserved filename to each of the three devices it recognized: CON for the console (keyboard and display), PRN for the printer, and AUX for the auxiliary serial ports. Whenever one of these reserved names appears in the file control block of a file named in a command, all operations are directed to the device rather than to a disk file.
 * }