Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!agate!linus!linus!dhf From: dhf@linus.mitre.org (David H. Friedman) Newsgroups: comp.windows.ms Subject: Re: How may I automatically run a batch upon startup of DOS shell? Message-ID: <125407@linus.mitre.org> Date: 5 Nov 90 17:22:48 GMT References: Reply-To: dhf@linus.UUCP (David H. Friedman) Distribution: usa Organization: The MITRE Corporation, Bedford MA Lines: 11 . I had a similar problem, when I wanted to open a DOS window and load some TSR's, then wait at the prompt. I think what I did is: 1) Set up a PIF for the DOS window (e.g., COMMAND.PIF) 2) Set the PIF to execute e.g. COMMAND.BAT 3) COMMAND.BAT loads the TSR's (read: runs your application), then loads a DOS subshell (the last line of the file is C:\DOS\COMMAND) 4) You're left looking at the DOS prompt from the copy of COMMAND.COM that was loaded by the batch file. To get out, enter EXIT from the keyboard, and the window should close. You may get a message from Windows saying something like: "your TSR is ready to run. To exit this window, enter Control-C..." in which case ^C gets you out.