# den4b Forum

You are not logged in.

## #1 2020-07-23 06:22

Andrew-HOD
Member
Registered: 2020-01-08
Posts: 7

### Setting Folder Location

Hello,

Is there a way to set where the folder that stores Presets etc is?  I want to move out of Documents to a different folder.  I cannot find a setting for this.  Hopefully it is easy and not so obvious that I feel stupid (but ready for that)

Thank you,
Andrew

Offline

## #2 2020-07-23 15:02

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,043

### Re: Setting Folder Location

SETTINGS managed by ReNamer are stored in a dynamically determined location.

Here are some collected postings by den4b:

For the PORTABLE version all settings, scripts, translits and presets
are stored in the same location as "ReNamer.exe".
(Same for the ReNamer Installer version before v6.0)

For the INSTALLER version a user profile directory is used by default,
or whatever is configured in the "Storage.ini" file
located in the same folder as "ReNamer.exe".

You can override the location of all stored settings by replacing the content of "Storage.ini" file
(just create the ini if it doesn't exist) with a desired path, for example:

Storage.ini example lines:
D:\My Data\ReNamer\

And even environment variables are resolved since v6.4:
%APPDATA%\ReNamer\
%USERPROFILE%\ReNamer

Important: the "Storage.ini" should NOT contain the string "#USER#" any longer,
if it is still there, remove it and write in the path to the wanted settings folder.

There should be only one line in the "Storage.ini", the path to the wanted settings folder without "..." quotes.
That path is the root path for all settings:
Settings.ini and ReNamer.ini, Language, Presets and Translits folder.

Tested: path work with, and without trailing backslash\, and paths which contains spaces must not be enclosed in "quotes".

If you want to store presets and all other settings in the same folder as "ReNamer.exe",
then you don't need "Storage.ini" file at all, just delete it.
That is the default operation of the portable version.

The Text file "Storage.ini" file is what makes ReNamer use user profile directory for the installer edition.
So you could delete that ini file to have all settings in the same location as "ReNamer.exe".
Or modify the path to the storage folder in that INI, as shown above.

P.S. The existing settings will not be migrated automatically, so you'll need to move them manually if you want to keep using them.
If you want to continue to use the old settings, you have to move the settings by hand from the old location in addition to deleting or modifying the ini.
If you use the Installer, ReNamer will do that for you (see "Migration.log")

But keep in mind you will need to have write access to the application folder or to the new settings folder,
in case he is located inside of the by Microsoft UAC protected folders like "C:\Program Files\"
else Windows shows error as the following:
Failed to save a preset.
Unable to open file "C:\Program Files\ReNamer\Presets\Capitalize.rnp"

"Program Files" is write protected by Windows UAC.

- - - Example Migration.log found on the forum:

Migration initiated at 5/23/2016 7:54:58
Source directory: C:\Program Files (x86)\ReNamer\
Target directory: C:\Program Files (x86)\ReNamer\Presets\
Copy from: C:\Program Files (x86)\ReNamer\ReNamer.ini
Copy to: C:\Program Files (x86)\ReNamer\Presets\ReNamer.ini
Copy result: OK
Copy from: C:\Program Files (x86)\ReNamer\Presets
Copy to: C:\Program Files (x86)\ReNamer\Presets\Presets
Copy result:  FAILED
Copy from: C:\Program Files (x86)\ReNamer\Scripts
Copy to: C:\Program Files (x86)\ReNamer\Presets\Scripts
Copy result: OK
Copy from: C:\Program Files (x86)\ReNamer\Translits
Copy to: C:\Program Files (x86)\ReNamer\Presets\Translits
Copy result: OK
Rename from: C:\Program Files (x86)\ReNamer\Presets\ReNamer.ini
Rename to: C:\Program Files (x86)\ReNamer\Presets\Settings.ini
Rename result: OK

Offline

## #3 2020-07-24 05:49

Andrew-HOD
Member
Registered: 2020-01-08
Posts: 7

### Re: Setting Folder Location

Hello,

Sounded easy enough, but I did this:
in C:\Program Files (x86)\ReNamer a file called Storage.ini I did this

#USER#
%APPDATA%\ReNamer

Every time it starts it says "You are launching for the first time" and it does not seem to create folders or anything.

Am I missing something?

v7.2, registered user!

Offline

## #4 2020-07-24 07:06

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,043

### Re: Setting Folder Location

Yes, I can confirm that:
- have created a file "Storage.ini" in the folder with ReNamer.exe (didn't use Installer here)
which contains a path to another location
- start ReNamer
- the wanted storage folder from "Storage.ini" is created
- but not used, I always get that both "welcome" messages
- even if I copy my old "Settings.ini" and "ReNamer.ini" into that new folder
(and the folder Language, Presets and Translits too)
- Also, settings made in ReNamer are not remembered that way
- Only if I rename the "Storage.ini", the old "Settings.ini" is taken and settings are stored again.
Tested on win10 with 6.8 and 7.1

I will see if I find some more information what is missing here, tomorrow I can test the installer myself on another PC.

Here is the same issue
Settings not remembered in Win 10? >> https://www.den4b.com/forum/viewtopic.php?id=2231

den4b, it would be nice if ReNamer would show the currently used ini-location in the About-dialog, as like TotalCmd does.

Offline

## #5 2020-07-24 16:11

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,043

### Re: Setting Folder Location

I have found it:

Storage.ini should NOT contain "#USER#" any longer.

``````Storage.ini
%APPDATA%\ReNamer``````

Sorry for the confusion. I have updated my post above.

Offline