Skip to main content

Running .bat Files on Linux or Steam Deck

Some mods may require you to run a .bat file the install the mod. This is a Windows Batch file that cannot run on Linux natively. Thankfully, we already have Proton/Wine which can run Windows programs for us and will work with batch files, so we just need to use that. This will cover one simple way designed to be user friendly for Steam Deck and non-technical users.

I will be using the game Mobile Forces as an example, but the process should be the same for other mods that require running a .bat file as well.

Enter Desktop Mode

Enter Desktop mode and follow your Mod's install process, placing the files wherever they need to be.

Install Protontricks

On your Steam Deck you can find Protontricks in the Discover app. On other devices it's in whatever package manager your distro has, and also available as a Flatpak.Screenshot_20240830_095425.png

Open Protontricks and select the game your .bat file is for. If the game isn't displayed in the list, be sure you've launched it at least once from Steam, then open Protontricks again and you should see your game.

Screenshot_20240830_102400.png

In the menu that pops up, select the defaut wineprefix.

In the next menu, select Run explorer. This will open a file manager where we can browse to the .bat file.

Screenshot_20240830_102705.png

Now browse to your game directory and to the .bat file. There are a few places it could be:

  1. Under one of the drive letters there may be a steamapps folder that contains your game. Easy!
  2. You may need to browse to it using the full path. If so, From the Steam game's Properties menu, Click Browse Local files to open the game directory. 
    1. The top menu bar will show the full file path. If not, click on it to see the full path. Open the same director path in the protontricks menu to find the file.
    2. Directories starting with a dot like .steam are hidden folders which won't show in the explorer. When you get to that folder, you'll need to manually enter the name into the Location bar then hit Enter and the folder will open.

Example 1:

Screenshot_20240830_102828.png

Example 2:

After entering my home directory, I had to manually type in .steam then Enter in the Location bar to get that folder to open.

2024-08-30_10-31.png

Double click the .bat file you need to run and it will do its thing. Now you're done!

2024-08-30_10-33.png

In my case, the warnings were harmless and everything worked. Mod successfully installed.