i had to change a few things to make this work.@echo off ::Setup ::Fill these out. Everything except UserID should be correct already set UserID=add_your_friendCode_here ::It's the same as your friend code. Go to settings in steam and it's on the account tab set GameID=2246340 ::You can probably use this script for almost any game if you change the gameID. ::If you go to a game's steam store page, you can find it in the url just before the game's title. set BackupFolder=C:\Save Backups\MH Wilds ::This is where your backups will go. If the folder doesn't exists, the script creates it for you set SteamInstallDir=C:\Program Files (x86)\Steam ::If you installed Steam somewhere other than the default directory, you can change it here set GameExe=MonsterHunterWilds.exe ::The script will launch this exe file. Change it if you want to use it for other games ::Don't touch anything beyond this point ::Or do, I can't stop you ::Skip launching the game if it's already running TASKLIST | FINDSTR %GameExe% >NUL || GOTO LAUNCH GOTO SKIP :LAUNCH start %GameExe% :SKIP setlocal enabledelayedexpansion :: Format DateTime as YYYY-MM-DD_HH-MM-SS setlocal enabledelayedexpansion for /f "tokens=1-4 delims=/:. " %%a in ("%date% %time%") do ( set Year=%%d set Month=%%b set Day=%%c set Hour=%%a set Minute=%%b set Second=%%c ) :: Fallback for time (more reliable) set "datetime=%date:~10,4%-%date:~4,2%-%date:~7,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%" :: Remove any spaces in hour set "datetime=%datetime: =0%" md "%BackupFolder%\%DateTime%" 2>NUL md "%BackupFolder%\%DateTime%" xcopy /e /i /y "%SteamInstallDir%\userdata\%UserID%\%GameID%\remote\*" "%BackupFolder%\%DateTime%\" >NUL echo. echo Your save folder is here: echo %SteamInstallDir%\userdata\%UserID%\%GameID%\remote\ echo. echo Your save files have been copied here: echo %BackupFolder%\%DateTime% echo. timeout 10
Thanks for creating this script, it's super useful! I was able to make a version for backing up my Stardew Valley saves too which is great.
One thing I figured out is that if you run the batch script through launch options, the '%command%' part after the script name is passing the game's .exe path as an argument to the batch script, so if you're running it through launch options then the .exe field may be unnecessary and you can just have the game launch with %1, which is cool.
Am I doing something wrong? It says that the file couldn't be found... Running Windows 11 btw Edit: I mistaken the Steam folder with the game's directory. Sorry, running as a charm now
you're a life saver!! I was having the same issue. The instructions said Steam installation folder and made me think it's the game installation folder and not Steam itself.
The instructions are actually pretty clear about that and does not have that error.
I am liking the mod so much, that I recommend it in my guide to prevent savegame loss https://steamcommunity.com/sharedfiles/filedetails/?id=3459020087 If necessary there you find some extra images for orientation, but Tacumoto's instructions are perfectly fine the way they are.
Endorsement and kudos for you, for sharing the script - it is incredible comfortable and I am recommending it to every Monster Hunter player I know. That being said,
Endorsement and kudos for you, for sharing the script - it is incredible comfortable and I am recommending it to every Monster Hunter player I know. That being said,
Heya, similar problem for me, it says 'File not found' and the folders are generated but there are no save files within them. Not sure what the problem is
because wmic is not a supported command for win11 24h2. replace line 34 with this: for /f "tokens=2 delims==" %%I in ('"powershell os get localdatetime /value"') do set datetime=%%I
I also had to use dudleygg's changes to line 35 for the script to start functioning.
The filename, directory name, or volume label syntax is incorrect
My folder is named "MHWilds Save Backup" I've tried to remove spaces and renamed it to "MHWilds_Save_Backup" and still got the same error. Do you know how to fix it?
Hey, so I had the exact same problem this morning but I fixed it ery simply, no need to replace any line. Just download Wmic from your Windows settings and everything will work fine. Here are instructrions:
1.Select Start (or the Windows icon on your keyboard or the taskbar).2.Select the Settings app to open it.3.Select the System tab.4.Locate and select Optional features toward the bottom of all system features.5.At the top of the Optional features tab, locate Add an optional feature.In that field, select View features. This will open a pop-up window.6.In the pop-up window to Add an optional feature, type “WMIC” into the search box.7.When WMIC appears in the results below, select it by checking the box next to it. (Note: WMIC will not appear in the results if it’s already installed.)8.Select Next to install WMIC feature in the same pop-up window.
Once Wmic is installed you're good to go, the saving script should work no problem. Hope this helps.
that syntax error is not actually referring to your folder names. its an error with the set DateTime code at line 35. I managed to fix that line by using dudleygg's changes to that line from the comment they posted down below.
I do everything according to the instructions (pasted the dudleygg's line) and instead of the date I have some strange naming in the folders. For example I generated the save file on 10.03.2025 @ 14:41 and it generated a folder named ".202- 1-.014_41_54"
What can I do to make the script generate me the correct date and time? As far as I can see it only generates the correct time and instead of the date it generates some random numbers
Sorry to bother you, but I want to close the issue with this mod to the end and at the same time maybe other people will benefit from it
7D83ph56, Have you tried version 1.1? 1.0 relies on your computer's regional date setting and that's why it doesn't work properly. The method I used in 1.1 is supposed to work consistently.
if you are still having issues, i added a comment above that you can just copy and paste into the bat file and should fix the issue. i had the same problem and was able to fix it with the code i posted.
It works like a charm but I get "'Skip' is not recognized as an internal or external command, operable program or batch file." At the top for some reason. It still works tho.
That's weird. Skip is just a label to jump to to skip trying to launch the game if it's already running, it's not a command. I'm glad it doesn't affect anything at least.
47 comments
i had to change a few things to make this work.
@echo off
::Setup
::Fill these out. Everything except UserID should be correct already
set UserID=add_your_friendCode_here
::It's the same as your friend code. Go to settings in steam and it's on the account tab
set GameID=2246340
::You can probably use this script for almost any game if you change the gameID.
::If you go to a game's steam store page, you can find it in the url just before the game's title.
set BackupFolder=C:\Save Backups\MH Wilds
::This is where your backups will go. If the folder doesn't exists, the script creates it for you
set SteamInstallDir=C:\Program Files (x86)\Steam
::If you installed Steam somewhere other than the default directory, you can change it here
set GameExe=MonsterHunterWilds.exe
::The script will launch this exe file. Change it if you want to use it for other games
::Don't touch anything beyond this point
::Or do, I can't stop you
::Skip launching the game if it's already running
TASKLIST | FINDSTR %GameExe% >NUL || GOTO LAUNCH
GOTO SKIP
:LAUNCH
start %GameExe%
:SKIP
setlocal enabledelayedexpansion
:: Format DateTime as YYYY-MM-DD_HH-MM-SS
setlocal enabledelayedexpansion
for /f "tokens=1-4 delims=/:. " %%a in ("%date% %time%") do (
set Year=%%d
set Month=%%b
set Day=%%c
set Hour=%%a
set Minute=%%b
set Second=%%c
)
:: Fallback for time (more reliable)
set "datetime=%date:~10,4%-%date:~4,2%-%date:~7,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%"
:: Remove any spaces in hour
set "datetime=%datetime: =0%"
md "%BackupFolder%\%DateTime%" 2>NUL
md "%BackupFolder%\%DateTime%"
xcopy /e /i /y "%SteamInstallDir%\userdata\%UserID%\%GameID%\remote\*" "%BackupFolder%\%DateTime%\" >NUL
echo.
echo Your save folder is here:
echo %SteamInstallDir%\userdata\%UserID%\%GameID%\remote\
echo.
echo Your save files have been copied here:
echo %BackupFolder%\%DateTime%
echo.
timeout 10
One thing I figured out is that if you run the batch script through launch options, the '%command%' part after the script name is passing the game's .exe path as an argument to the batch script, so if you're running it through launch options then the .exe field may be unnecessary and you can just have the game launch with %1, which is cool.
Edit: I mistaken the Steam folder with the game's directory. Sorry, running as a charm now
I am liking the mod so much, that I recommend it in my guide to prevent savegame loss https://steamcommunity.com/sharedfiles/filedetails/?id=3459020087
If necessary there you find some extra images for orientation, but Tacumoto's instructions are perfectly fine the way they are.
Endorsement and kudos for you, for sharing the script - it is incredible comfortable and I am recommending it to every Monster Hunter player I know. That being said,
Thank you very much!
Endorsement and kudos for you, for sharing the script - it is incredible comfortable and I am recommending it to every Monster Hunter player I know. That being said,
Thank you very much!
It says file not found. Creates the folder however it's empty.
'wmic' is not recognized as an internal or external command,
operable program or batch file.
My os in Windows 11 x64
for /f "tokens=2 delims==" %%I in ('"powershell os get localdatetime /value"') do set datetime=%%I
I also had to use dudleygg's changes to line 35 for the script to start functioning.
The filename, directory name, or volume label syntax is incorrect
My folder is named "MHWilds Save Backup" I've tried to remove spaces and renamed it to "MHWilds_Save_Backup" and still got the same error.
Do you know how to fix it?
1.Select Start (or the Windows icon on your keyboard or the taskbar).2.Select the Settings app to open it.3.Select the System tab.4.Locate and select Optional features toward the bottom of all system features.5.At the top of the Optional features tab, locate Add an optional feature.In that field, select View features. This will open a pop-up window.6.In the pop-up window to Add an optional feature, type “WMIC” into the search box.7.When WMIC appears in the results below, select it by checking the box next to it. (Note: WMIC will not appear in the results if it’s already installed.)8.Select Next to install WMIC feature in the same pop-up window.
Once Wmic is installed you're good to go, the saving script should work no problem. Hope this helps.
What can I do to make the script generate me the correct date and time? As far as I can see it only generates the correct time and instead of the date it generates some random numbers
Sorry to bother you, but I want to close the issue with this mod to the end and at the same time maybe other people will benefit from it
edit: It's fixed, now works normal
thanks for any help provided
Edit: Found it nvm
operable program or batch file." At the top for some reason. It still works tho.
I'm glad it doesn't affect anything at least.