homepage Welcome to WebmasterWorld Guest from 54.198.46.115
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Microsoft / Microsoft Windows OS (XP/NT/Vista/Windows 7/8/9/10)
Forum Library, Charter, Moderators: bill

Microsoft Windows OS (XP/NT/Vista/Windows 7/8/9/10) Forum

    
List of FileNames reserved exclusively for Windows Operating System
There are certain filenames which we cannot create...
Imaster




msg:3128788
 4:28 pm on Oct 20, 2006 (gmt 0)

Hello,

Is there a list of filenames which are exclusively reserved for windows OS.

I am creating files using a software and one such file was "con". However the software gave an error and when I tried to create that file manually, it gave an error. For example, try creating a file "con" on your PC and you won't be able to create it.

Is there any function in Visual Basic which automatically derives such a list and not create those files, so that the software can proceed without any errors.

Also, is there such a list available so I can manually add them to my software coding.

There is a small list available here: [en.wikipedia.org...] Any more?

[edited by: Imaster at 4:31 pm (utc) on Oct. 20, 2006]

 

kaled




msg:3128909
 6:16 pm on Oct 20, 2006 (gmt 0)

This is NOT definitive...

CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL

I would be more general and disallow COM0..COM9 and LPT0..LPT9

Kaled.

bill




msg:3129273
 11:13 pm on Oct 20, 2006 (gmt 0)

Here's what Microsoft says about: Naming a file [msdn.microsoft.com]:
Do not use the following reserved device names for the name of a file: CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft Windows OS (XP/NT/Vista/Windows 7/8/9/10)
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved