Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!akm From: akm@cs.uoregon.edu (Anant Kartik Mithal) Newsgroups: comp.windows.ms Subject: Re: Launching Windows apps from DOS box. Summary: more about winver/setup Message-ID: <1991Mar22.041513.23990@cs.uoregon.edu> Date: 22 Mar 91 04:15:13 GMT References: <6340@amc-gw.amc.com> Sender: usenet@cs.uoregon.edu (Netnews Owner) Organization: Department of Computer Science, University of Oregon Lines: 26 >>>I should like to know why Windows applications cannot be launched from >>>a DOS window. I know that Windows applications call a special function >>>if Windows is not present. But maybe there is a way to catch the situation >>>that Windows is up and running, while the DOS window is active? >From: alan@ukpoit.co.uk (Alan Barclay) >WINVER does this. Don't know how though. Actually, it doesn't... If you run winver from dos (no windows at all, it behaves like a dos application. If you run it from windows, it behaves like a windows application. If you run it from a dos shell within windows, it behaves like a dos application... Setup.exe does the same thing. There was a good explanation by someone about why winver running in a dos shell can't figure out that windows is running, and how it would be up to the shell (e.g. command.com / 4dos to do the needful...) kartik -- Anant Kartik Mithal akm@cs.uoregon.edu Research Assistant, (503)346-4408 (msgs) Department of Computer Science, (503)346-3989 (direct) University of Oregon, Eugene, OR 97403-1202