IsValidFileNameDetermine if a file name is valid | |
Download |
IsValidFileName Ranking & Summary
Advertisement
- License:
- Freeware
- Publisher Name:
- Joe Woodbury
- Publisher web site:
- http://joewoodbury.net/default.aspx
- Operating Systems:
- Windows All
- File Size:
- 29 KB
IsValidFileName Tags
- validate determine determine value determine coordonate determine MTU value filename Validation determine azimuth Determine Proportion valid hits determine file encoding determine nakshatra determine age determine file type valid e-mail valid e-mail valid test valid e Validate FileName FileName Validation FileName Validator determine decay
IsValidFileName Description
The IsValidFileName application was developed to be a small tool that uses a function to determine if a file name is valid.The Windows file system has documented set of rules for creating file and directory names. IsValidFileName() provides functions to check a filename against this set. They also return error codes enabling the developer to display more specific codes for the user. These functions do NOT do a comprehensive search of the global name space to ensure there are no other failure modes with the file name in a subsequent file and/or directory creation. For example, the directory could already exist.The file system has the following rules for creating names for files or directories:- All characters greater than ASCII 31 to be used except for the following: "*/:?\| - The name may not be only dots - The following device names cannot be used for a file name nor may they be used for the first segment of a file name (that part which precedes the first dot):CLOCK$, AUX, CON, NUL, PRN, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9 - Device names are case insensitive. (i.e. aux, AUX, Aux, etc. are identical.) - Names cannot be longer than 255 characters unless UNICODE paths are used
IsValidFileName Related Software