Save Copy of Configuration As problem

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
jd
Posts: 16
Joined: 24 Dec 2007 04:26

Save Copy of Configuration As problem

Post by jd »

Running xyplorer 9.50, when I do a Save Copy of Configuration As, xyplorer always places the ini in the xyplorer directory, even though I explicitly navigate to another directory in the Save As dialog.

-- jeff

admin
Site Admin
Posts: 65015
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Save Copy of Configuration As problem

Post by admin »

This has never been different. Also copies of the pane data subfolders are copied into the Panes subfolder in the current app data path. It's clumsily mentioned in the titlebar of the dialog and should be made clearer in the Help.

Depending on what you want to achieve the Backup All Settings might be your friend.

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Save Copy of Configuration As problem

Post by SkyFrontier »

As an alternative, you may be interested in assigning this script a button and automate the whole process:

Backup XY Settings:

Code: Select all

   copyto "<xydata>\BKPs\<date yyyy-mm-dd>\<xyver>",
    "<xydata>\*.ini|<xydata>\*.dat|<xydata>\FindTemplates";
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

jd
Posts: 16
Joined: 24 Dec 2007 04:26

Re: Save Copy of Configuration As problem

Post by jd »

admin wrote:This has never been different. Also copies of the pane data subfolders are copied into the Panes subfolder in the current app data path. It's clumsily mentioned in the titlebar of the dialog and should be made clearer in the Help.
If so, then xyplorer should not use the Save As dialog. What's the point in allowing the user to select a folder than then ignoring it?

admin
Site Admin
Posts: 65015
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Save Copy of Configuration As problem

Post by admin »

jd wrote:
admin wrote:This has never been different. Also copies of the pane data subfolders are copied into the Panes subfolder in the current app data path. It's clumsily mentioned in the titlebar of the dialog and should be made clearer in the Help.
If so, then xyplorer should not use the Save As dialog. What's the point in allowing the user to select a folder than then ignoring it?
Yes, it's not great. It is a limitation of that dialog that browsing to other folders cannot be suppressed. Its virtue is that it offers a filtered view of the contents of one folder.

What do you try to achieve by copying the configuration to another path?

jd
Posts: 16
Joined: 24 Dec 2007 04:26

Re: Save Copy of Configuration As problem

Post by jd »

admin wrote:What do you try to achieve by copying the configuration to another path?
I want to place the backup the file in a place accessible from elsewhere, for example a USB drive or a DropBox folder.

admin
Site Admin
Posts: 65015
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Save Copy of Configuration As problem

Post by admin »

jd wrote:
admin wrote:What do you try to achieve by copying the configuration to another path?
I want to place the backup the file in a place accessible from elsewhere, for example a USB drive or a DropBox folder.
I thought so. Use Backup All Settings... in the same menu. It does what you want and includes all necessary files, not just the INI files.

jd
Posts: 16
Joined: 24 Dec 2007 04:26

Re: Save Copy of Configuration As problem

Post by jd »

admin wrote:I thought so. Use Backup All Settings... in the same menu. It does what you want and includes all necessary files, not just the INI files.
I tried using Backup All Settings. It seems to copy everything, including the executable and helpfiles, as well as data files that I don't want (such as the catalog), 30 files in total.

So what's "Save Copy As" good for? The help file says "Backups the current configuration under a new name (defaults to the present date suffixed to the INI base name) without making it the active INI file."

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Save Copy of Configuration As problem

Post by SkyFrontier »

Hi again, jd.
Bumping on the script solution once again.
-it'll deliver any files you want (script default is: xyplorer.ini plus 6 config .dat files and FindTelmplates folder);
-wherever you want: just replace "copyto "<xydata>" section with "copyto "D:\Custom\Path", like this:

Code: Select all

   copyto "c:\Backups\xyBKPs\<date yyyy-mm-dd>\<xyver>",
    "<xydata>\*.ini|<xydata>\*.dat|<xydata>\FindTemplates";
anything with the "copyto destination, source files" format.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

admin
Site Admin
Posts: 65015
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Save Copy of Configuration As problem

Post by admin »

jd wrote:
admin wrote:I thought so. Use Backup All Settings... in the same menu. It does what you want and includes all necessary files, not just the INI files.
I tried using Backup All Settings. It seems to copy everything, including the executable and helpfiles, as well as data files that I don't want (such as the catalog), 30 files in total.

So what's "Save Copy As" good for? The help file says "Backups the current configuration under a new name (defaults to the present date suffixed to the INI base name) without making it the active INI file."
I see. This happens when app folder and app data folder are identical, which is a rather unusual case. I would even call this a bug.

Now which files are you interested in?

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Save Copy of Configuration As problem

Post by j_c_hallgren »

admin wrote:I see. This happens when app folder and app data folder are identical, which is a rather unusual case. I would even call this a bug.
But on my system (non-UAC OS), app folder & app data folder are the same and that's the desired setup for me, so not sure what you mean by a a bug?

Now I would say that "Backup All Settings" is a bit misnamed given what it's presently doing since it not only does the INI + DAT but also any/all folders/files, including EXE within the app data folder and thus in my case, backed up 103 files! This is more like "Backup Application" since it does non-INI/DAT files.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Save Copy of Configuration As problem

Post by Stefan »

I had the same experience.

While using "Backup All Settings" i am sitting back and watched
how all my tools are backed up instead of the settings only.

I did (and still do) understood "Backup All Settings" as an feature
who backing-up only my settings, that's all the ini's and dat's

Or IOWs: "Backup All Settings" should only copy what "Save All Settings" would save.

Backing-up the whole app folder as an build-in command is un-common in my experiences.

Maybe XYplorers own sub-folders should be included by "Backup All Settings" too?
Or there could be an additional command "Backup XYplorer" which copies
all ini's and dat's, the exe and the folders "FindTemplates\", "NewItems\" and "Scripts\"

Doing an backup of the whole XYplorer-folder i could do on my own.

admin
Site Admin
Posts: 65015
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Save Copy of Configuration As problem

Post by admin »

"Backup All Settings" currently does what is said about it in the Help:
Backups the whole contents of the Application Data Folder to a folder of your choice.
Only if app folder and app data folder are identical (= unusual setup of older days which is not recommended since 8.90) then the EXE and other stuff is also copied simply because they happen to be in app data folder.

I agree it's misnamed and should be called "Backup Application Data Folder".
Another question is whether this command is useful: I think yes.

Yet another question is whether another command should be added which backups only what is saved by "Save All Settings" to another location. This command should be called "Backup All Settings" and yes, I think it would be useful as well.

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Save Copy of Configuration As problem

Post by Stefan »

admin wrote:Only if app folder and app data folder are identical (= unusual setup of older days which is not recommended since 8.90)
BTW I think it is very usual to have exe and data in one common folder since many use XYplorer as an portable app.

admin
Site Admin
Posts: 65015
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Save Copy of Configuration As problem

Post by admin »

Stefan wrote:
admin wrote:Only if app folder and app data folder are identical (= unusual setup of older days which is not recommended since 8.90)
BTW I think it is very usual to have exe and data in one common folder since many use XYplorer as an portable app.
Yes, but the recommended and code-supported way is to have them in subfolder \Data:

Code: Select all

v8.80.0060 - 2010-01-27 22:50
    * Startup, App Data Path: Now, if
      - no app data path is set by command line
      - AND no startup.ini is found in app path
      - AND no XYplorer.ini is found in app path 
      then the app data path is auto-set to <xypath>\Data.
      Reason: Keeping the variable user data together in one place is a 
      good idea. Even in portable installations which is the typical 
      context for this scenario.

Post Reply