I am making this program which checks if your floppy drive is ready or not. And so it has to check for say 20 seconds. And for this I want the program to run in the background. How do I do this?

I am using Borland C++ and Turbo C++

10 Years
Discussion Span
Last Post by EZO

What operating system?

For rep happy the morons who can't tell the difference, I'm asking if the OP is using Windows or DOS. The answer to the question changes drastically between those two systems, and Borland has written C++ compilers for them both. :icon_rolleyes: ;)

Votes + Comments
Are you really that stupid?

I want it to be a DOS based program. I have borland C++ the windows based.

The question is whether or not DOS is your operating system. Don't confuse a console application in Windows with being "DOS". Which, given your reply, is a likely assumption.

On what OS do you intend to run the target executable?


im pretty sure that it isnt exactly the right way to do it, or the best way, but i know an easy way to run a c++ program in the background.

Make it a win32 application instead of console but do not draw a window.

I know it works, ive done it before.

again, i know its not a good way to do it, but it will work.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.