shim@zip.eecs.umich.edu (Sam Shim) (06/12/90)
Is there a way to execute DOS batch files and then get a DOS prompt in a Windows 3.0 window? If I set my PIF file to execute a batch file, when the batch file is done, my windows closes or becomes inactive (depending on how I set it). What I want it to do is to execute a batch file and then give me the DOS prompt. Thanks. ----------------------------------------------------------------------------- | Sam Shim | "I didn't do it... | | EECS Departmental Computing Organization | It wasn't me... | | University of Michigan | Nobody saw me do it... | | Ann Arbor, MI 48109 | Nobody can prove a thing..." | | internet: shim@eecs.umich.edu | - Bart Simpson | -----------------------------------------------------------------------------
mms00786@uxa.cso.uiuc.edu (06/13/90)
You might try running command.com with the /c myfile.bat parameter. This invokes command.com and tells it to execute myfile.bat. Hope this works. Milan .
stever@Octopus.COM (Steve Resnick ) (06/14/90)
In article <2602@zipeecs.umich.edu> shim@zip.eecs.umich.edu (Sam Shim) writes: > > Is there a way to execute DOS batch files and then get a DOS prompt in >a Windows 3.0 window? If I set my PIF file to execute a batch file, when >the batch file is done, my windows closes or becomes inactive (depending >on how I set it). What I want it to do is to execute a batch file and then >give me the DOS prompt. Thanks. > Why not in the PIF file leave the check box for "Close window on exit" to off? I think this will work, if not, try using CALL <batchname> as your program name? Hope these things help.... Steve -- -------------------------------------------------------------------------------- Steve Resnick -<stever@octopus.COM apple!octopus!stever sun!vsi1!octopus!stever> 408/241-1533 Process Scientific, Inc. --------------------------------------------------------------------------------
shim@zip.eecs.umich.edu (Sam Shim) (06/14/90)
In article <1990Jun13.214950.16576@Octopus.COM> stever@octopus.UUCP (Steve Resnick ) writes: >Why not in the PIF file leave the check box for "Close window on exit" to >off? I think this will work, if not, try using CALL <batchname> as your >program name? Close on exit doesn't work. All that does is keep the window on screen after it is done instead of automatically closing it. I haven't tried using CALL to call a batch file. I'll give it a shot. Thanks! ----------------------------------------------------------------------------- | Sam Shim | "I didn't do it... | | EECS Departmental Computing Organization | It wasn't me... | | University of Michigan | Nobody saw me do it... | | Ann Arbor, MI 48109 | Nobody can prove a thing..." | | internet: shim@eecs.umich.edu | - Bart Simpson | -----------------------------------------------------------------------------
sam@hpspdra.HP.COM (Sam Espartero) (06/17/90)
# Is there a way to execute DOS batch files and then get a DOS prompt in #a Windows 3.0 window? If I set my PIF file to execute a batch file, when #the batch file is done, my windows closes or becomes inactive (depending #on how I set it). What I want it to do is to execute a batch file and then #give me the DOS prompt. Thanks. Try adding %COMSPEC% at the end of your batch file. Or just COMMAND.COM /E:XXX at the end. You can also get fancy and have the batch file act on a parameter. Like below, ..... at end of batch file, add the following ..... if %1 "==" goto end if %1==$ %COMSPEC% :end If you just type THATFILE at the DOS prompt, no shell will be executed. In Windows 3.0, put a $ in optional parameters. Your batch file executes and you get a DOS prompt, entering EXIT closes the window. ---------- - Sam (standard disclaimer applies) Espartero - Hewlett-Packard, Stanford Park Division 1501 Page Mill Road, Bldg. 5U Palo Alto, CA. 94304 (415)-857-5913, sam@hpspd.spd.hp.com