Yes, you can do it in MS-DOS, because it is not a multi-user or multi-tasking operating system. However, the same will not work on Windows, as it is a multi-user and multi-tasking operating system. It is also not in real time, which means that there is no guarantee that your task will be completed exactly when you ask it to be completed. Everything is deliberately planned, which means that any number of other processes and tasks (either user or system level) can effectively "raise" your process in the priority list and make it wait for execution until these other tasks are completed or themselves were interrupted to give your process a chance to run for a while.
I do not know about Linux, but I believe that most major distributions are written similarly to Windows.
To do this, you need to find a real-time operating system for one user. A Unix derivative is probably the best place to start your search, but I will not be the person able to offer it.
Alternatively, you can continue to use MS-DOS (or alternatives such as FreeDOS), but switch to another interface technology available on newer boards. There is no reason to update something that works for you, especially if updates are counterproductive for your purpose.
source share