From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: running a program in the background Date: 19 Oct 2000 17:02:10 GMT Organization: Aachen University of Technology (RWTH) Lines: 17 Message-ID: <8sn9ei$18s$1@nets3.rz.RWTH-Aachen.DE> References: <8sn7e3$6ka$1 AT nnrp1 DOT deja DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 971974930 1308 137.226.32.75 (19 Oct 2000 17:02:10 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 19 Oct 2000 17:02:10 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com rameshdorai AT my-deja DOT com wrote: > Is there a way to run my program in the background in dos without me > seeing a dos window, like what UNIX is capable of. I don't think so. DOS programs are a bit 'alien' to a Windows machine, much unlike Unix, where daemons are just ordinary processes. A DOS program is not just a single program, but rather a complete virtual machine which that DOS program is running in. If you want to program a daemon, you should write it in a more 'native' API, i.e. it should be a Win32 (console) application. Such apps can switch themselves completely into the background --- a quick view into the process list of a running Win9x system easily confirms that. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.