long folder names make files dissappear

September 3, 2009 at 23:25:09
Specs: Windows XP
Our company runs specific inhouse DOS programs, when i have folder name too long and i go into our program it can not see the files in there:
e.g. C:\Testa\testing8-09 then when i run my program no files exist to open, if i rename testing8-09 to t8-09 then run my program it comes up with the list of files in the dircetory, aaaarggghhh!!!!

Also, this does not happen on most of our pc's just my laptop

See More: long folder names make files dissappear

Report •

September 4, 2009 at 05:36:14
It kinda sounds like something in your application is using short file names for directories, and your laptop has the old 8dot3 names disabled.

If it's an in house application, you should talk to your programmers, and see if that's the case.

To verify if you have 8dot3 disabled, open the Command Prompt and type: fsutil behavior query disable8dot3
If you get a 1 or some other sort of affirmative confirmation, then that's probably the reason.

Report •

September 7, 2009 at 16:08:55
Thanks for the reply, i did have a tweak program which had the 8dot3 disabled. The programs are from a company that we buy our gear off in Canada so i can' talk to the programmers.

How do i re-enable this setting, i did in the tweak program but it made no difference

Report •

September 7, 2009 at 16:32:59
I . . . don't know. The Internet at large seems pretty quiet about re-enabling 8.3 names, and MS' documentation on the subject is non-existent.

Obviously, you'll need to reboot after enabling 8.3. After that, I assume any new file or directory you make will have the 8.3 name attached. I'm also going to assume Windows will not actively look to add 8.3 names to existing files/directories. Maybe chkdsk will hand out short names, but I doubt it.

Report •

Related Solutions

September 7, 2009 at 17:24:32
From something I read I believe Razor2.3 is correct about re-enabling 8.3 not retroactively creating aliases.

It's a long shot but I have an idea, using copy from the command line or a batch script to "touch" the files may do the trick. It will change the modified time stamp on every file it's used on, so I cannot guarantee it's saftey:

copy /b "filename"+,,

I suggest you test it on a single file that doesn't work, if afterwords it does you have a choice of recursing a directory tree or a whole drive at your own risk.

Forgot to mention fsutil can re-enable 8dot3.

fsutil behavior set disable8dot3 0

Of course if your program does it there is no need.

Report •

October 7, 2009 at 16:17:05
Thanks for that, it is reenabled and our programs can see the files even if we have a long folder name, yes! . Did not work for retroactively creating aliases but i have got a copy of all the data again and then copied it back to my pc so i don't have to shorten hundreds of old folders.

Report •

Ask Question