FileNameSplitter

  • Bill Talada

    SSChampion

    Points: 11956

    Comments posted to this topic are about the item FileNameSplitter

  • Peter E. Kierstead

    SSCarpal Tunnel

    Points: 4114

    A simple analysis of the file path as a string won't always work. File paths can be constructed such that directory components have periods in them, e.g.,

    C:\MyDirectory\LooksLikeAFileNameButIsReallyADirectory.txt

    A simple string analysis can't tell if this is a directory path or full file name path. System calls are needed to determine the difference and this opens up an authentication can of worms...

    Also, there's the whole UNC scenario with leading \\ServerName\ShareName\...



    PeteK
    I have CDO. It's like OCD but all the letters are in alphabetical order... as they should be.

  • akljfhnlaflkj

    SSC Guru

    Points: 76202

    Thanks for the script.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply