DOSBox is a DOS-emulator that uses the SDL-library which makes DOSBox very easy to port to different platforms. DOSBox has already been ported to many different platforms, such as Windows, BeOS, Linux, MacOS X. Anybody know how to minimize the command prompt when running a batch script in Windows 3.11? In Windows XP, there have a command start /min start.bat to minimize the cmd prompt, is it have sim.
anybody know how to minimize the command prompt when running a batch script in Windows 3.11?
in Windows XP, there have a command
to minimize the cmd prompt, is it have similiar command in MSDos 6.22?
issacissac
4 Answers
This little batch code should do what you need.
The relevant code then needs to be placed at the top of your script:
Here is more information about
'%~dpnx0'
.rbprogrammerrbprogrammer
There isn't a command that you can use from a DOS prompt, however you can create a PIF file that points to your batch file, in which you can set the default window position (including minimized).
...I think. It's been a couple of decades.
Greg HewgillGreg Hewgill
How to minimize the current command prompt:
Purpose:
- Close a command prompt after execution.
- Open a new command prompt using the same path.
First open command prompt : Hold down the [Windows] + [R] keys.
Go to this location:
Next excute:
Results:
A new minimized command prompt should open with the same path.
A new minimized command prompt should open with the same path.
Alternatively:
Create a script named minimize.bat and type
Create a script named minimize.bat and type
start /min && exit
into the script and place it in your system32 folder. In order to have the ability to access it via the command prompt.deneztdenezt
Use
WinExec
to start your batch file and pass SW_SHOWMINIMIZED
for the second parameter.See also, How do I run a batch file with
WinExec
?Community♦
Rob KennedyRob Kennedy