VOGONS


First post, by valimaties

User metadata
Rank Newbie
Rank
Newbie

Hi.
I have an application that i have to launch it with parameters. Ex: myapp.exe -firstparameter parameter2 parameter3. How to use dosbox to launch my application?! I have to mention that myapp.exe is a 16bit application that launches with first parameter as an internal parameter of myapp.exe (-firstparameter), the second parameter is a file on my computer and third parameter is file that creates myapp.exe.
Thanks 😉

Reply 1 of 3, by valimaties

User metadata
Rank Newbie
Rank
Newbie

I managed to start my application, using -c parameter of dosbox. My problem is now the window of dosbox wich not take the -noconsole parameter, either -exit parameter.
My command is like this:
dosbox.exe -exit -noconsole -c "mount T 'D:\My Folder1\My Folder2'" -c "T:" -c "myapp.exe -parameter1 file1.ex1 file2.ex2"
This line of command start myapp.exe, it is running, but doxbox window is on top and after myapp.exe is finnish the dosbox does not close itself.

Reply 3 of 3, by eraH_retired

User metadata
Rank Retired
Rank
Retired

Try this, exit is a command that needs to run in dosbox.

dosbox.exe -noconsole -c "mount T 'D:\My Folder1\My Folder2'" -c "T:" -c "myapp.exe -parameter1 file1.ex1 file2.ex2" -c "exit"