N
Nathan
Hi,
How does one obtain a platform's invalid file name characters from the
..NET framework? I have noticed that invalid path characters can be
obtained from System.IO.Path.InvalidPathChars but this list does not
include items that would be illegal for file names (for example, a
colon: would be invalid in a MS Windows environment).
Please note that catching an exception from Path.GetFileName() would
allow me to test the validity of a file name but would not allow me to
include the invalid characters in a message to the user.
Many thanks.
Nathan
How does one obtain a platform's invalid file name characters from the
..NET framework? I have noticed that invalid path characters can be
obtained from System.IO.Path.InvalidPathChars but this list does not
include items that would be illegal for file names (for example, a
colon: would be invalid in a MS Windows environment).
Please note that catching an exception from Path.GetFileName() would
allow me to test the validity of a file name but would not allow me to
include the invalid characters in a message to the user.
Many thanks.
Nathan