CheckFilename()
Syntax
Result = CheckFilename(Filename$)Description
Checks if the specified Filename$ doesn't contain invalid characters for the file-system. For example, on Windows '/' and '\' characters are not allowed in the filename.
Parameters
Filename$ The filename to check without a path.
Return value
Returns nonzero if the filename does not contain invalid characters and zero if it does.
Remarks
Even if the syntax-check of this function doesn't complain, there are different 'forbidden' filenames on different OS. For example on Windows filenames containing "COM1" till "COM9", "LPT1" till "LPT9" or "aux" are not allowed. For more informations see here.
Supported OS
All