I've managed to put all needed commands as parameters and some as autoexec commands (although it looks messy) and start it with a button but there are some display bugs and it's more of a DOSBpx-forum case. i modified the script code to correct a typoĪs I said before, script almost works, it starts DOSBox but nothing is mounted but now cmd.exe gives me "drive have already been mounted through SUBST command" message. Is there a way to make a Windows shortcut that will run a dos program through DosBox automatically, without the need to open DosBox mount a drive etc' manually So opening the shortcut loads the program (through DosBox) without the need for any additional input. To pass a parameter to a script just add the "%P" in the parameter field of total commander.įrom command line just add it after your script name. launch your dosbox stuff mounting the virtual drive A Common AUTOEXEC.BAT ECHO OFF MOUNT C C:\DOSGAMES C: CLS ECHO Hello world. In DOSBox, AUTOEXEC.BAT is a section of the nf file. Windows 95 was implemented into a web-based DOSBox emulator around early 2016. Because DOSBox already emulates most of what a CONFIG.SYS, and AUTOEXEC.BAT would do, there isn't much need to define anything other than your mountable drives. Now the target box should look something like this 'C:Program ' 'C:davedave.exe'. In the target field, place your cursor after the last double quote and hit space. Could you please elaborate on passing folder as a parameter? I have no idea how to do this (I have 0 experience in batch files, only some entry level BASIC and C++)ĪS said, first you have to make it run from command line cmd.exe. access and 32-bit disk access were enabled). Go to the desktop and right click on the DOSBox icon. Also, weird thing but "rem" does not comment sections out of a bat file for me, I needed to use "::". The script gives me nothing, nothing is mounted. :: if dosbox wait for app to finish uncomment next line If the auto-completed one isn't what you're seeking, press Tab again to "cycle" through all entries matching what you've typed.D:\directory\DOSBox.exe d:\directory2\app.exe -c "MOUNT D W:" You can also use the Tab key to auto-complete paths and filenames.To launch one of those executables, type its full filename and press Enter.BAT file (which is executed immediately after DOSBox is initialized). To find all executables in a folder, use the commands dir *.exe and dir *.bat. Here you can define the contents of the AUTOEXEC.You can "exit" a folder and return "one level up" in your storage using the command cd.You can "enter" a folder using the command cd FolderName (for example, cd duke3d).'Tell it' (paste with CTRL + V) to use the folder you created in the previous step. Now's the time to run DOSBox-X, and the first thing you'll see won't be the app but a requester for the folder it should use. Now we need to export DOSBox' config file: We open DOSBox and type inside it: config -writeconf /home/user/dos/nf. Click in your file manager's 'path' field/bar, and copy the full path to the folder you created to the Clipboard. Drives can be mounted from the command line in DOSBox, from batch files or shortcuts used to launch games in DOSBox or from the autoexec section of the dosbox. This will create the directory dos and inside it another directory c in your home folder: mkdir -p /dos/c. You can see a listing of all folders on the "current level" of the storage using the command dir. Install dosbox on Ubuntu/Debian-like systems with: sudo apt-get install dosbox. For example, in Windows mount C D:GAMES will give you a C drive in DOSBox which points to your Windows D:GAMES directory (that was created before).If you prefer to install by command line: For Debian/Ubuntu-based systems: sudo apt install dosbox For Fedora/RHEL/CentOS systems: sudo dnf install dosbox For Arch-based systems: sudo pacman -S dosbox. If that sounds like too much work for playing a handful of games, here's a quick recap of the most important commands that can get you up and running in mere minutes: Installing DOSBox is easy as it’s in the repositories of almost every distribution and should be accessible under any package manager. As it has already been shown how to mount a folder and set it as c drive in dosbox (although it is also necessary to add c: under the mount c line to actually change to that folder), I will address the second part of the question and demonstrate a few other dosbox commands that can be used to mount optical drives and disk image files. If you aren't, and interacting with your PC using commands is something new for you, it would be best to check our beginners guide to the Windows Command Prompt. Launching Your Retro-Favorites With DOSBox-XĭOSBox-X is easier if you're familiar with DOS since it works precisely like a DOS-era PC.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |