Results 1 to 7 of 7
  1. #1
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Pathname Length (2003/SP2)

    I understand that the pathname length is limited to 254 characters. Should the file be located on a server, can any relief be achieved by using a mapped drive?
    Regards
    Don

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Pathname Length (2003/SP2)

    Yes, instead of referring to

    myservermysharetopfoldersubfoldersubsubfoldermyfil e.doc

    you could refer to

    F:myfile.doc

    if you mapped myservermysharetopfoldersubfoldersubsubfolder to F:

  3. #3
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Pathname Length (2003/SP2)

    Thank you for the speedy response Hans.

    I am most pleasantly surprised.
    Regards
    Don

  4. #4
    4 Star Lounger
    Join Date
    Dec 2003
    Location
    Zoetermeer, Zuid-Holland, Netherlands
    Posts
    559
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Pathname Length (2003/SP2)

    Sometimes Word has trouble finding files on a mapped drive. In those cases the use of Function GetUNCPath resolves that. You can find this function and how to use it if you Search the Lounge. See my <post:=469,933>post 469,933</post:> for example.

  5. #5
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Pathname Length (2003/SP2)

    Hans
    I misunderstood your response. Perhaps you and others could verify or refute the results which I have found.
    <pre> UNC Mapped
    Pathname Pathname
    Length Length Results
    ---------- ---------- ------------------------------
    <= 259 <= 46 No indication any of problem
    .
    260 - 265 47 - 52 Warning appeared if and when
    VBE was open(ed) that Word could
    not open the Macro container.

    >= 266 >= 53 Word crashed trying to open
    the document
    </pre>


    These results were obtained by:
    <UL><LI>Launching Word
    <LI>Attempting to open the file with Ctrl + O
    <LI>Using the mapped drive to browse to the File being opened.[/list] Additional data pertaining to the file being opened:
    <UL><LI>it was a text file (.txt)
    <LI>it was located in a folder that was 2 levels deep within the mapped drive (Z:Folder 1Folder 2File.txt)
    <LI>It was located 9 levels deep within the computer acting as a server (ServerServer Drive at Level1 Folder at Level2. . . Folder at Level9File.txt)[/list]
    Regards
    Don

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Pathname Length (2003/SP2)

    This is probably not a very helpful aside, but.. I once ran a VBScript against many hundreds of files to re-arrange their file names (as part of a Mac-to-Windows conversion). In this process, I made a mistake, believe it or not, and got some file names that were dozens of characters too long for Windows Explorer. The only solution was to fix them using VBScript again. This suggests to me that the problem is not so much in the capacity of the NTFS file system, but in the assumptions/design of Windows Explorer, or perhaps the "common dialogs" shared by other applications. Sorry, this doesn't really address your problem, but maybe you'll find a way to use the FileSystemObject to open those "difficult-to-open" files.

  7. #7
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Pathname Length (2003/SP2)

    Thanks Jefferson
    Regards
    Don

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •