Page 1 of 2

Save Copy of Configuration As problem

Posted: 16 Sep 2010 06:09
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

Re: Save Copy of Configuration As problem

Posted: 16 Sep 2010 08:40
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.

Re: Save Copy of Configuration As problem

Posted: 16 Sep 2010 13:18
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";

Re: Save Copy of Configuration As problem

Posted: 16 Sep 2010 22:03
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?

Re: Save Copy of Configuration As problem

Posted: 17 Sep 2010 10:06
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?

Re: Save Copy of Configuration As problem

Posted: 17 Sep 2010 19:29
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.

Re: Save Copy of Configuration As problem

Posted: 17 Sep 2010 19:43
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.

Re: Save Copy of Configuration As problem

Posted: 17 Sep 2010 22:32
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."

Re: Save Copy of Configuration As problem

Posted: 17 Sep 2010 23:17
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.

Re: Save Copy of Configuration As problem

Posted: 18 Sep 2010 09:10
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?

Re: Save Copy of Configuration As problem

Posted: 18 Sep 2010 16:10
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.

Re: Save Copy of Configuration As problem

Posted: 18 Sep 2010 19:03
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.

Re: Save Copy of Configuration As problem

Posted: 18 Sep 2010 21:23
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.

Re: Save Copy of Configuration As problem

Posted: 18 Sep 2010 21:56
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.

Re: Save Copy of Configuration As problem

Posted: 19 Sep 2010 08:51
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.