Source language: Translate to:

Seeking information about Windows - Behaviour on different p

NeoBook tips, tricks, code samples and more...

Moderator: Neosoft Support

Seeking information about Windows - Behaviour on different p

Postby Gaev » Fri Aug 27, 2004 6:54 am

Hi All:

In my current project, I have a need to permit the user to type the name of a file to be created ; in order to prevent Windows from popping up an error message, I want to catch invalid file names before calling Windows.

On my machine, if I enter an invalid character in Windows Explorer, I get this message ...

A filename cannot contain any of the following characters:
\ / : * ? " < > |


... so, what I would like to find out from fellow community members (with their myriad of platforms), is if this list is consistent across all versions/languages of Windows ; I would appreciate if others could respond to this post with their own experiences e.g.


Win/98 SE (Canadian English)
A filename cannot contain any of the following characters:
\ / : * ? " < > |


... hopefully, the collective results will make for a useful knowledgebase for everyone else too.


Thank you in advance for your anticipated participation.
User avatar
Gaev
 
Posts: 3735
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Seeking information about Windows

Postby Sam Cox » Fri Aug 27, 2004 6:57 am

WIN2000 (English) does not allow \/:*?"<>| in filenames.
User avatar
Sam Cox
 
Posts: 768
Joined: Fri Apr 01, 2005 7:30 am
Location: Loveland CO USA

Seeking information about Windows

Postby Wrangler » Fri Aug 27, 2004 7:08 am

WinXp Pro - English returns \ / : * ? " < > |

I believe all versions of windows will return the same. This is a DOS entrapment and all windows are really just a shell for DOS.

(Edited by Wrangler at 7:10 am on Aug. 27, 2004)
Wrangler
 

Seeking information about Windows

Postby HPW » Fri Aug 27, 2004 7:08 am

Same on WIN2000 PRO(German) and WINXP PRO(German)

\/:*?"<>|
HPW
 

Seeking information about Windows

Postby Alberto Meyer » Fri Aug 27, 2004 3:46 pm

*********************************
all windows are really just a shell for DOS.
*********************************

Since WinMe, the things had changed too much about the quoted above. :)

All the best
Alberto Meyer
 

Seeking information about Windows

Postby Scherzkeks » Fri Aug 27, 2004 11:46 pm

i have these symbols and words on my bannlist...
~ ` ! @ # $ % ^ & * ( ) _ - + =
{ [ } ] : ; " ' < , > . ? / \ |
com1
com2
nul
cheers
Scherzkeks
 

Seeking information about Windows

Postby Alberto Meyer » Sat Aug 28, 2004 4:40 am

Alberto Meyer
 


Return to NeoBook Knowledgebase

Who is online

Users browsing this forum: No registered users and 1 guest