Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

recursing subdirectories - redirector (Developers)

posted by kerravon E-mail, Ligao, Free World North, 27.11.2025, 12:38

> There was a blog post about this not too long ago:

Thanks - I read that, and all the comments.

But it's the other way around - how to make EMU2 run existing
DOS applications.

I'm more interested in how to write DOS applications in the first
place such that EMU2 or some other random OS (like PDOS)
can handle, if everyone follows "the rules".

I think what I should probably do is switch to using the LFN
routines that include an explicit "close". And if I detect I am
on a system that doesn't support the LFN close function, I
just make sure that I always call FindNext until it returns with
a failure, and an assumed automatic close.

So that way the random OS has a solution for efficient
processing - provide LFN close.

And applications have a solution for efficient processing -
use LFN close.

And for everything else - it still works, and normally it will
be no extra overhead. If you have a relatively rare situation
where you want to terminate a findnext before reaching the
end, well, that's just the price you need to pay - if the LFN
version doesn't exist, you need to keep reading to the end
anyway.

That's my current suggestion for "sensible rules", but maybe
someone has something better?

BFN. Paul.

 

Complete thread:

Back to the forum
Board view  Mix view
22984 Postings in 2156 Threads, 403 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum