![]() ![]() :: So variable %~dp0 is the drive and path where the batch file resides. :: Variable 0 (zero) in a batch file is always SET to the batch file name. :: CLS is the DOS command to clear your screen. :: = Do not echo back the text after the symbol. I'm using Windows XP, but this should work in Windows 7 also. Optional: Create a shortcut from the batch file to the start menu / taskbar / desktop, rename the shortcut as needed, and change the shortcut icon to the game icon. Save the batch file in the game directory with the game's name and a. conf names to match your subdirectory structure and file names. Copy the batch file text into the new file. Create a game folder / directory with subdirectories containing the DOSBox files and game files. Verify that DOSBox loads / runs your game correctly with no crashes or errors. Verify that the settings in your game's DOSBox configuration. Always only one click needed to load your game with proper settings! The directory containing the batch file, DOSBox, and game(s) can be moved anywhere and the game(s) will still run by clicking the batch file. Then you can move / restore your game anywhere without loosing your preferred settings. Just set up all your preferred settings and make a backup copy. No more having to run the install file to reinstall. No more typing long command strings to load a DOSBox game with your preferred settings. No more having to create / edit a shortcut or batch file to get your game running properly every time you reinstall or make a change to your game. Once it is set up, this batch file greatly simplifies the process of running a DOSBox based game. In this file, DOSBox.exe is in \DOSBOX and the game executable is in \GameDir. The DOSBox directory and game directories must be subdirectories of the batch file directory so that the locations of the DOSBOX directory and game directories remain fixed in relation to the batch file. The batch file uses a variable based on the location of the batch file to recreate the directory path relative to the batch file. Here is a batch (.bat) file I created to make DOSBox games portable in Windows. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |