Quoted from "Rossbot;524806"
I've been having issues with my addons resetting when I crash sometimes. Is there a way to hold these settings, maybe make a duplicate, so I don't have to set up my addons just the way I like them? If there is a way to do this, I would greatly appreciate it.
)|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
@echo off rem **** Backup Main Settings **** cd "C:\Documents and Settings\Runes of Magic" if NOT EXIST Backup md Backup copy /y SaveVariables.lua .\Backup rem **** Backup Character **** rem the following assumes a character named Peryl cd Backup if NOT EXIST Peryl md Peryl cd .. copy /y .\Peryl\SaveVariables.lua .\Backup\Peryl |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 |
@echo off rem **** Restore Main Settings **** cd "C:\Documents and Settings\Runes of Magic" if NOT EXIST Backup goto abort copy /y .\Backup\SaveVariables.lua . rem **** Restore Character **** if NOT EXIST Peryl goto abort copy /y .\Backup\Peryl\SaveVariables.lua .\Peryl abort: |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
@echo off rem ========================================== rem == Backup UI/add-on settings == rem ========================================== rem **** Change to RoM's settings folder, saving current folder location **** pushd "c:\Documents and Settings\whatever\My Documents\Runes of Magic" rem **** Create the backup folders if they don't exist **** if not exist ..\RoMBackup md ..\RoMBackup for /d %%n in (*) do if not exist ..\RoMBackup\%%n md ..\RoMBackup\%%n rem **** Backup the main SaveVariables.lua file **** copy /y SaveVariables.lua ..\RoMBackup rem **** Backup character specific SaveVariables.lua files **** for /d %%n in (*) do if exist .\%%n\SaveVariables.lua copy /y .\%%n\SaveVariables.lua ..\RoMBackup\%%n rem **** Go back to folder we originally came from **** popd echo Settings Backup Completed. pause |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
@echo off rem ========================================== rem == Restore UI/add-on settings == rem ========================================== rem **** Change to RoM's settings folder, saving current folder location **** pushd "c:\Documents and Settings\whatever\My Documents\Runes of Magic" rem **** Ensure backup folder exists **** if not exist ..\RoMBackup goto abort rem **** Restore main settings **** copy /y ..\RoMBackup\SaveVariables.lua . rem **** Restore all saved character specific settings **** cd ..\RoMBackup for /d %%n in (*) do if exist "..\Runes of Magic\%%n" copy /y .\%%n\SaveVariables.lua "..\Runes of Magic\%%n" goto done :abort rem **** Exit with error message **** popd echo No backup folder to restore from, aborting. pause exit :done rem **** Go back to folder we originally came from **** popd echo Settings Restored from Backup. pause |
Quoted from "heoboy123;526044"
Hello, I have a problem with the batch file. When executed, it said
SaveVariables.lua
The system cannot find the file specified.
0 file<s> copied.
Please help
Quoted from "heoboy123;526112"
Thank you for your reply
My hidden RoM folder path: C:\Users\ADMIN\Documents\Runes of Magic
So in the batch file: pushd "C:\Users\ADMIN\Documents\Runes of Magic"
Do I have to change anything else beside that? I do have SaveVariables.lua. It does create the folder but nothing in there
When I run the batch file it shows only the above 3 lines plus Settings Backup Completed. Press any key to continue
Quoted from "heoboy123;526191"
I can copy the file manually, but the last time I did it I could not save my key binding anymore and my statrating cannot save again. So I want to try this way. Here's the screenshot of the batch file when run: http://imgur.com/YBmj0
Quoted from "heoboy123;526191"
I can copy the file manually, but the last time I did it I could not save my key binding anymore and my statrating cannot save again. So I want to try this way. Here's the screenshot of the batch file when run: http://imgur.com/YBmj0