Your code will call System.IO.Path.CheckInvalidPathChars
, which in turn checks for the the following:
double quote (")
left angle bracket (<)
right angle bracket (>)
veritical bar (|)
and for control characters less than 32 decimal (space).
So Make sure your path doesn't contain them.
Ngu Soon Hui
2009-11-16 11:22:04