VOGONS


First post, by OVZh

User metadata
Rank Newbie
Rank
Newbie

Dear all,

I'm having a DOS program which operates on many files. Trying to run it under DOSBox results in Dos Error 4 (too many open files).

Under real DOS I got it working by setting "files=250" in config.sys. How can I do the same trick in DOSBox ?

Thanks much in advance,
--
Oleg Zhukov

Reply 1 of 8, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

recompile dosbox and setting DOS_FILES to 255 in some include
it is 127 currently

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

Reply 4 of 8, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Dear one - I humbly suggest that whoever wrote a program that requires more than 127 open files needs to think again and figure out a better way to solve the problem.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 8 of 8, by OVZh

User metadata
Rank Newbie
Rank
Newbie

Thank you very much! I'll try to recompile DOSBox and will post here any questions that will arise during the process 😀

As for the program under question - it's still slightly supported but I doubt that the developer will revise its behaivor with regard to opening less amount of files... So the solution for me is to recompile DOSBox.

Thanks again,
--
Oleg Zhukov