| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Valid Filename? |
RI> Hello all!
RI>
RI> I have been working on a file manager for sysops of boards that use a
RI> files.bbs structure and have run into a bit of a problem. What is a
valid file
RI> name under OS/2? I have determined that, under FAT, a filename can start with
RI> any letter, number, one of the following:
"&!#%(){at}`~{}", or alt-### where
RI> 127<###<256. Under HPFS, this list is extended to include
"+-[].,+=^;" (not
The double quote is an invalid character! It will simply disappear
from the filename
RI> counting, of course, a space). I cannot check out the CDFS by the method I
Cdroms are generally written the the iso9600 format which is 8.3
filenames and the character set is the alpha-numeric character set..
one invalid character that I know of is the {at}
RI> have been using (echo junk > fname where fname is the name being
tested, use
RI> quotes if necessary) so I cannot be sure how to do that. Does
anyone know of a
RI> sure fire technique to identify whether or not a given string represents a
RI> valid filename for the given file system?
if you can use the filename to open the file or findfirst/findnext
reports it as the filename then you can take it for granted that it is
the filename. In otherwords let the operating system take care of
it.. You might want to 'warn' the sysop of a filename that does not
follow the 8.3 specifications. (dos apps won't see it)
* KWQ/2 1.2e NR * Friends don't let friends use Windows.
--- QScan v1.067b
* Origin: Programmer's Guild BBS, Hamilton, Ont. (1:244/317)SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 712/353 623 713/888 800/1 @PATH: 244/317 300 99 12/12 270/101 396/1 3615/50 229/2 12/2442 @PATH: 711/409 54/54 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.