the master
01-05-2008, 06:07 PM
Hi. Im not sure if there is a proper name for this (i dont know what to search on). I want to remove the double dots from a filename but in the same way windows would treat it.
"C:\test\folder\..\blah" would be "C:\test\blah"
I also want to check if there are too many double dots and if there are then ignore them.
"C:\test\..\..\.." would be "C:\"
"C:\test\folder\..\blah" would be "C:\test\blah"
I also want to check if there are too many double dots and if there are then ignore them.
"C:\test\..\..\.." would be "C:\"