VOGONS


First post, by qp_pete

User metadata
Rank Newbie
Rank
Newbie

Hi,

Is there a way to make DOSBox automatically start and run an application in full-screen mode?

I have always made desktop icons, which I configure to run my QB exe apps in full-screen.

What I have to do with DOSBox so far is this...

1) Click the DOSBox exe from Explorer.

2) at the z:> prompt type: mount c c:\myprogs

3) type the name of the exe to begin.

Is there a way all this could be automatically done with a click my application desktop icon?

Thanks,

Pete

Reply 1 of 4, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Yes. It is called the ReadMe file.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 2 of 4, by qp_pete

User metadata
Rank Newbie
Rank
Newbie

I felt the ReadMe file was a bit ambiguous but the Wiki link maybe had something useful.

----------------------------------------------

STEP 4 - Other Useful features
Quick start
You can save yourself some time by having the program automatically mount and set the drive. Do this by going to your DOSBox folder, and opening the dosbox.conf file. You can open it with Notepad. Scroll down to the very end, and add these lines:

mount C C:\oldgames

C:

Now those commands will be executed automatically when starting! If you're having trouble with that, make sure it looks like this (look at the bottom):

------------------------------------------------------

Is that what your "Yes" reply was in reference to? If so, it is helpful but such a process would require a mini-utility to set the config.sys file to the proper mount and program to run for different programs.

Maybe there is something and I don't want to appear rude but I just don't have all day to read every last thing written about DOSBox, that's why I came to the forum.

Personally, I have answered countless questions in forums I participate in and as a moderator I think you could do better. Hey, if you know the documentation so well, then it wouldn't be too hard to point a newbie to the part that answers the question or even to quote from it.

Just my 2-cents, have a good day.

Pete

Reply 3 of 4, by MiniMax

User metadata
Rank Moderator
Rank
Moderator
  264 =========
265 3. Usage:
266 =========
267
268 An overview of the command line options you can give to DOSBox.
269 Windows Users must open cmd.exe or command.com or edit the shortcut to
270 DOSBox.exe for this.
271 The options are valid for all operating systems unless noted in the option
272 description:
273
274 dosbox [name] [-exit] [-c command] [-fullscreen] [-conf congfigfile]
275 [-lang languagefile] [-machine machinetype] [-noconsole]
276 [-startmapper] [-noautoexec] [-scaler scaler | -forcescaler scaler]
277
278 dosbox -version
279
280 name
281 If "name" is a directory it will mount that as the C: drive.
282 If "name" is an executable it will mount the directory of "name"
283 as the C: drive and execute "name".
284
285 -exit
286 DOSBox will close itself when the DOS application "name" ends.
287
288 -c command
289 Runs the specified command before running "name". Multiple commands
290 can be specified. Each command should start with "-c", though.
291 A command can be: an Internal Program, a DOS command or an executable
292 on a mounted drive.

Create a shortcut that reads:

dosbox.exe -fullscreen -c "mount c c:\myprogs" -c "nameof.exe"

Even this should do:

dosbox.exe "c:\myprogs" -fullscreen -c "nameof.exe"

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 4 of 4, by qp_pete

User metadata
Rank Newbie
Rank
Newbie

Thanks!

That helped a lot.

It took some tweaking but you certainly cut my work load down a ton.

This worked for me in Windows 98. (I do all my experimenting in my Win98.)

1) Set Working Directory to: "\program files\Dosbox-0.65"

2) Command line: dosbox.exe "c:\myprog\myprog.exe" -fullscreen

The PIF will then automatically mount the drive and execute the program.

I tried the suggestions you posted:

<dosbox.exe -fullscreen -c "mount c c:\myprogs" -c "nameof.exe">

and...

<dosbox.exe "c:\myprogs" -fullscreen -c "nameof.exe">

I tried those statements and a few variations and although they would get DOSBox to mount the drive, for some reason the commands were not read in order. DOSBox actually issued an error message as it tried to run the exe program first. Then. after it issued the error, it successfully mounted the drive. Go figure.

Anyway, the line I manipulated from your suggestions did the trick and I cannot thank you enough for that.

I need to try running DOSBox in Vista this weekend but from what I've read about vista, I doubt that it will support ANY program in full screen that runs in a console. It seems the driver was built that way.

Pete