Forum: Library: Dateien / Laufwerke
Delphi
by CalganX,
17. Sep 2005
Und bigg hat noch zusätzlich folgende Version im Angebot:
function IsFileName(FileName: String): Boolean;
const ForbiddenChars = ; // verbotene Zeichen
const ForbiddenNames: Array of String = ('AUX', 'NUL', 'PRN' ,'CON', 'CLOCK$', // verbotene Namen
'COM1', 'COM2', 'COM3', 'COM4', 'COM5', 'COM6', 'COM7', 'COM8', 'COM9',
'LPT1', 'LPT2', 'LPT3', 'LPT4', 'LPT5', 'LPT6', 'LPT7', 'LPT8',...
Forum: Library: Dateien / Laufwerke
Delphi
by CalganX,
17. Sep 2005
himitsu hat noch folgende Version zusammengebastelt:
Type TCFNameMode = Set of (
cnmDOSCompatible, // Tests for file modifier characters ("+", ";", "=" ...).
cnm8Point3Names, // Tests for short file names (8.3).
cnmQuoteEnabled, // File name may be included into quotation marks (").
cnmErrorLeftChar, // Error on chars to be left out.
cnmContainPath); // File name can...