VOGONS


First post, by ErikGG

User metadata
Rank Member
Rank
Member

I recently found a problem with some DOS illegal characters. See the attached picture for more information.

The picture shows me trying to cd to a directory named "A;x.CDuio" in windows. As shown in the picture DOSBox shows the correct dirname, but cd'ing to the given name isn't possible, although it exists in DOSBox.

It is not because of the .cdu, because if I change the ";" to a "-" everything works perfectly.

The reason why I used such a name is that I'm trying to get D.O.G. to generate perfect DOSBox shortnames. I'm close to that, but these "Illegal" DOS filename characters play a troublesome role in it.

Is there a way around this problem or is it just "Don't use it"?

And what is the complete list of Illegal characters for DOS filenames? I know ";" and "," are one of them, including the space.

Thanks,

Erik.

Reply 1 of 3, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

there is no way around that.
DOSBox it's list of illegal characters is larger then the one in dos.
although I don't think ; was liked in either.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 3, by ErikGG

User metadata
Rank Member
Rank
Member

No problem,

Then I'll build in a warning stating that those characters aren't allowed in DOSBox and D.O.G. won't load the executable/archives.

Any tips on what characters aren't allowed, a cpp to browse?

Erik.

Reply 3 of 3, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dos_files.cpp
dos_makename shows which characters we allow

Water flows down the stream
How to ask questions the smart way!