File path to correct case

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • torstenborg
    New Member
    • Jan 2012
    • 1

    File path to correct case

    In the Windows OS file paths are not case-sensitive.

    I wanted to identify where in my HTML-documents I have used incorrect case for any file reference so I could migrate to hosts where case-sensitivity would make misspelled references impossible to find.

    The enclosed function takes a path eg
    D:\VS FISA WEB\SITES\fisa\ MAIN\ES\ACTIVIT Y.HTM
    and, if the file exists (not case sensitive), returns
    D:\VS Fisa Web\Sites\Fisa\ main\es\activit y.htm

    Hope it is useful.
    Attached Files
Working...