VOGONS


Long file names

Topic actions

  • This topic is locked. You cannot reply or edit posts.

First post, by GreatBarrier86

User metadata
Rank Newbie
Rank
Newbie

I'm not sure if this would violate most old games' naming conventions but i was wondering if it was possible to allow long file names. Personally, it's a little annoying to have to write cd\docume~1 instead of the real name. I know, it's just a little thing but i was just wondering. Thanks!

IBM ThinkPad X40
1.2Ghz with 2MB L2 cache
1.0GB DDR2 SDRAM
Intel 852/855GME Graphics Media Accelerator with 64MB
12'' LCD Screen
SoundMax Integrated Audio

Peas Pobie!

Reply 1 of 19, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

To do so SDL would have to interpret each host OS's handling of Long file names and if it were implemented it would have to be across all platforms.....

Also I found a bug in DosBox's handling of LFN:

In DosBox Hitman~2 is interepreted from "Hitman 2 silent Assassin" and Hitman~1 is from "Hitman Codename 47".

Whereas in Windows, Windows interprets Hitman~1 as "Hitman 2 Silent Assassin" and Hitman~2 as "Hitman - Codename 47"

This is because if you look at the folders in Windows Explorer and sort by "Name" Windows places "Hitman 2" before "Hitman - Codename 47" whereas DosBox does the opposite".

The above was for Windows XP. Haven't tested it with 9x/Linux yet.

Last edited by DosFreak on 2005-11-30, 11:52. Edited 1 time in total.

How To Ask Questions The Smart Way
Make your games work offline

Reply 5 of 19, by jal

User metadata
Rank Oldbie
Rank
Oldbie
HunterZ wrote:

Just don't use long filenames for directories that will be used by DOSBox. Don't do it. DOS didn't support long filenames, so even if DOSBox does it will still not work in a lot of games.

I don't entirely agree. Since the DOSbox commandline interpreter isn't a real DOS program running on top of DOSbox, it is theretically perfectly capable of handling long filenames. In fact, DOSbox does handle long filenames, as it converts them to short ones (and it ignores any short names that Windows made up). What DOSbox could do, is allow long filenames to be used when typing in commands, and automatically convert them to short filenames, so that 'cd \program files' would result in 'c:\progra~1'. I don't really see that much use for it though, since you'd have to type more.

JAL

Reply 6 of 19, by GreatBarrier86

User metadata
Rank Newbie
Rank
Newbie

I can tell you. The use i see is that when i nav to a directory, i never know where the ~1 begins so i have to do a "dir" before i actually type cd\XXXXX. It may take longer to type it in but it would eliminate the need for the dir. I don't really count letters to see if progra~1 is 8 or if program~1 is 8. This would eliminate confusion there

IBM ThinkPad X40
1.2Ghz with 2MB L2 cache
1.0GB DDR2 SDRAM
Intel 852/855GME Graphics Media Accelerator with 64MB
12'' LCD Screen
SoundMax Integrated Audio

Peas Pobie!

Reply 8 of 19, by GreatBarrier86

User metadata
Rank Newbie
Rank
Newbie

poo on you! You are right...but what's wrong with adding >8.3 support?

IBM ThinkPad X40
1.2Ghz with 2MB L2 cache
1.0GB DDR2 SDRAM
Intel 852/855GME Graphics Media Accelerator with 64MB
12'' LCD Screen
SoundMax Integrated Audio

Peas Pobie!

Reply 9 of 19, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

jal & GB86: As I was trying to explain, even if long filename support were added to DOSBox's command line, people would just start reporting problems with the actual games themselves that they then try to run from directories with long filenames.

Last edited by HunterZ on 2005-12-02, 18:00. Edited 1 time in total.

Reply 13 of 19, by takysoft

User metadata
Rank Newbie
Rank
Newbie

"DOS didn't support long filenames"
WHAT????????

That is wrong. Many DOS systems did support long filenames.
I don't really know all dos versions of course, but DR-DOS did it for sure, and i think OpenDos does too(not sure).
Yes, the most popular MS-Dos did not support is, but that didn't even support fat32... no real dos user(who really liked dos) used MS-DOS...
i hate MS-DOS.... mainly because of all those "incorrect version" errors...
I could use older DR-dos programs in later versions too....
I could even use DR-DOS programs in MS-DOS...

Please DOS <> MS-DOS (<> = NOT EQUAL)

PS: Please don't ask me how to enable long filename support in DR-DOS... it was a long long time ago...

I will live forever or die trying

Reply 15 of 19, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

I used MS-DOS all the way up to 6.x, then I used the DOS 7.0 that is part of Win95. I was able to work around the limitations just fine and never needed long filename support in pure DOS mode.

no real dos user(who really liked dos) used MS-DOS...

No real DOS user who really liked DOS uses long filenames...

Reply 16 of 19, by Rondom

User metadata
Rank Newbie
Rank
Newbie
DosFreak wrote:

In DosBox Hitman~2 is interepreted from "Hitman 2 silent Assassin" and Hitman~1 is from "Hitman Codename 47".

Whereas in Windows, Windows interprets Hitman~1 as "Hitman 2 Silent Assassin" and Hitman~2 as "Hitman - Codename 47"

This is because if you look at the folders in Windows Explorer and sort by "Name" Windows places "Hitman 2" before "Hitman - Codename 47" whereas DosBox does the opposite".

Windows doesn't create 8.3 names by alphabet. It creates them when the files/dirs are created and if an 8.3 name with an ~1 already exists and after that ~2 is used and so on. AFAIK a longe hex-number comes after ~9.

DosFreak wrote:

To do so SDL would have to interpret each host OS's handling of Long file names and if it were implemented it would have to be across all platforms.....

That's why DOSBox creates its own 8.3 names. Not every filesystem has 8.3-names, either.

LFN-support works only with programs that make use of the LFN-API like MS-DOS-Editor (since Win95), FreeDOS-Editor, MPXPLayer and copy, dir, del etc. (since Win95)
Other programs can't use it. And they are not prepared to work with longer filenames.

There's an open-source LFN-driver for DOS. If someone has the time to do it and wants to implement LFN support in DOSBox, he can use parts of the code to implement the API in DOSBox.
LFNDOS was originally programmed by Henrik Haftman, but Jason Hood maintains it at the moment.
DOSLFN (latest version by Jason Hood)

I think messing around with orignal-filenames is nonsense, because DOSBox has its own FS in a sandbox.