ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

Can't change the configuration files location - W10 OneDrive

(1/2) > >>

katykaty:
Just reinstalled Windows 10 and as I'm using a Live account W10 has set the My Documents folder to my OneDrive

--- ---[environment]::getfolderpath("MyDocuments") returns
--- ---C:\Users\katykaty\OneDrive\Documents
So FARR is storing config files in OneDrive, which I don't want, especially because the troubleshooting log often has trouble syncing.

So I closed FARR and edited the ConfigDir.ini file by adding the following line at the end, without comment slashes

--- ---CONFIGDIR=C:\Users\katykaty\AppData\Roaming\DonationCoder\FARR\Config
Copied all the config files across and removed the initial config folder on OneDrive.

But FARR seems to be ignoring this and has created a new 'first run' folder in OneDrive.

I can obviously close and move the config files back so I don't lose my settings, but what am I doing wrong?

Thanks!

IainB:
@katykaty:
I had similar probs. This works for me:

In the file: C:\UTIL\Windows utilities\FindAndRunRobot\ConfigDir.ini
______________________________
/ NOTE: you have to *remove* the // in front of one line below to activate it
//CONFIGDIR=C:\UTIL\Windows utilities\FindAndRunRobot\Keys
// CONFIGDIR = .
// CONFIGDIR=%MYDOCUMENTS%
PORTABLE=TRUE
CONFIGDIR = .

// This file (ConfigDir.ini) defines the directory where all configuration
//  files for the program will be stored.
// There should be only 1 actual line in this file that has any meaning,
//  the CONFIGDIR assignmane above.  Everything else here is just comments.
//
// By default it is normally set to the program directory itself, meaning
//  that all configuration/ini/settings/preferences will be store here
//  with this ConfigDir.ini file.  This is also best for when you want to
//  put the program on a usb drive.
// Sometimes it is preferable to store the configuration files in a
//  different directory, like a "C:\Documents and Settings" subdirectory
//  which is designed to store program configuration data, or a custom
//  directory specified by a user on a separate drive.
//
// TIPS:
// 1. You can comment out lines by prefacing them with //
// 2. You can use the following replacements:
//     . (actual program directory -- use this for portable usb, etc.)
//     %MYDOCUMENTS% (like C:\My Documents)
//     %APPDATA% (like C:\Documents and Settings\{username}\Application Data)
//     %PROFILE% (like C:\Documents and Settings\{username})
//     %COMMONAPPDATA% (like C:\Documents and Settings\All Users\Application Data)
// 3. The specified directory will be created if it doesn't exist.
// 4. If configuration files are not found in the specified directory,
//     any existing configuration files in the app dir will be copied
//     from the app dir to the specified directory.
// 5. If you edit this file while the program is running you need to
//     exit and restart the program before it will take effect.
//
// EXAMPLES:
//    CONFIGDIR=.
//    CONFIGDIR=%MYDOCUMENTS%
//    CONFIGDIR=E:\MyCleverSettings\
//    CONFIGDIR=%APPDATA%
//
// NOTE: the company and application subdirectory name will automatically be
//  added to the path specified (except for %APPDIR% which includes the name
//  already, i.e.:
//    "E:\MyCleverSettings" -> "E:\MyCleverSettings\DonationCoder\AppName\"
//
// NEW:
//  You can now signify that an app should run in portable mode (no files saved to anything but app dir)
//  by specifying the uncommented line:
//   PORTABLE=TRUE
//
/////////////////////////////////////////////////////////////////////////////

katykaty:
Thank you @IanB

I tried that (even though I used the regular installer not the portable version) and it didn't appear to work - although FARR didn't create a new folder in my OneDrive. A filename search revealed the config files had now appeared in the Program Files (x86) folder.

Still, that's as good a place as any, so I closed, copyied the correct files over, and restarted, and all is working now.

So I've got the  a result that I wanted, even though I'm not quite sure how :)

IainB:
katykaty:
...I tried that (even though I used the regular installer not the portable version) and it didn't appear to work - although FARR didn't create a new folder in my OneDrive. A filename search revealed the config files had now appeared in the Program Files (x86) folder. ...
-katykaty (January 06, 2020, 04:54 PM)
--- End quote ---
Oh right. Sorry, I forgot about that prob. as it was a while back. That problem probably occurs because you have residual entries/pointers in the Registry. It will otherwise keep proliferating and expecting FARR folders/files in odd places.
You may need to uninstall and expunge all traces to FARR (use RevoUninstaller on severe scrub setting) and reinstall it from a .ZIP file as Portable only - so the only instance of FARR will be a portable version.

By the way, I also looked inside and tinkered with the DCUpdater metadata files to point to the latest FARR version and where the app lives, as opposed to where the DCUpdater metadata file(s) assume that it would live. That way, you can use DCUpdater to tell you when there's a new version of FARR - or other @mouser app. It's a bit fiddly to get right, but DCUpdater is very handy after doing that.

hamradio:
Just reinstalled Windows 10 and as I'm using a Live account W10 has set the My Documents folder to my OneDrive

--- ---[environment]::getfolderpath("MyDocuments") returns
--- ---C:\Users\katykaty\OneDrive\Documents
So FARR is storing config files in OneDrive, which I don't want, especially because the troubleshooting log often has trouble syncing.

So I closed FARR and edited the ConfigDir.ini file by adding the following line at the end, without comment slashes

--- ---CONFIGDIR=C:\Users\katykaty\AppData\Roaming\DonationCoder\FARR\Config
Copied all the config files across and removed the initial config folder on OneDrive.

But FARR seems to be ignoring this and has created a new 'first run' folder in OneDrive.

I can obviously close and move the config files back so I don't lose my settings, but what am I doing wrong?

Thanks!
-katykaty (January 06, 2020, 02:26 PM)
--- End quote ---


If you do not want to use OneDrive on Windows 10 for default save to location...

I believe you can search Win 10 settings for Default Save Locations and there you can change where the default locations are for a few data types between OneDrive or Windows drive I believe which might have an effect on it.

Navigation

[0] Message Index

[#] Next page

Go to full version