Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Long file path problems 1

Status
Not open for further replies.

peteriannetta

IS-IT--Management
Mar 11, 2001
41
AU
Hi everyone,

using W2K and have found that if I'm managing files that are perhaps around 3 or 4 folders deep, I'm getting an error telling me it can't copy the file, or if I'm saving, that it can't save the file.

It seems there is some kind of limit to the length of the path name of a file in W2K but surely this can't be true (or if it is, then it's hard to swallow).

I've tried to find some definitive info about this and would love to hear from anyone with info about any limitations around file names (and strategies to overcome this issue) - otherwise I guess it's time to overhaul my filing system and reduce the depth of my folders.

Cheers,
Pete
 
Hi Pete,

I have never heard of any restrictions like this on Win2k. I have just created a directory structure like you describe on my PC and had no problems with any MS Office progs saving / loading. Is it possible that the restriction is in fact not with the OS, but the application you are using ?

Are you able to give the specific error also.

Rgds,
Rob.
 
Thanks bcastner,

At least I can use the script to highlight the potential problem folders.

Do you know if this limit is removed in XP?

Cheers,
Pete
 
Same limit in XP.

One suggestion not in the MS KB article above is to use the SUBST command.

subst
Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to a virtual drive.
/D Deletes a substituted (virtual) drive.

So:

Start, Run,cmd
subst H: c:\long_folder\longer_foder\evem_longer_folder\ ...etc.

copy c:test h:

subst h: /d





 
Aah, now there's an old DOS command I haven't seen for a while, definitely worth a go.

Cheers,
Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top