How to consolidate 3 backupto-s, or suppress confirm dlgs?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

How to consolidate 3 backupto-s, or suppress confirm dlgs?

Post by aliteralmind »

The following works fine.

Code: Select all

:: $srcDir = "Q:\scripts_and_notes\"; $destDir = "C:\data_jeffy\app_settings\q_scripts_and_notes\"; backupto $destDir, $srcDir."*.sh", 2, , , 0; backupto $destDir, $srcDir."*.txt", 2, , , 0; backupto $destDir, $srcDir."*.sublime-project", 2, , , 0;
However, it pops up three of these dialogs, stating what each of the backupto-s just did:

Image

I expected these dialogs to *not* be displayed, since I've set the sixth parameter, which is "pop_stats", to 0.

How do I (a) suppress these dialogs and/or (b) consolidate these three backupto-s into one command? The documentation talks about wildcards, but I need to backup files with three different extensions.
Windows 8.1, 64-bit

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: How to consolidate 3 backupto-s, or suppress confirm dlg

Post by bdeshi »

(a)
aliteralmind wrote:I expected these dialogs to *not* be displayed, since I've set the sixth parameter, which is "pop_stats", to 0.
you need to set "show_progress" to 0.

(b)
separate source item patterns with |. Pseudocode follows.

Code: Select all

  $srcDir = "Q:\scripts_and_notes"; <=note missing \
  backupto $destDir, "$srcDir\*.sh|$srcDir\*.txt|...",....
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Re: How to consolidate 3 backupto-s, or suppress confirm dlg

Post by aliteralmind »

Darn. I thought I understood the meaning of the other column...which contradicts with the fact that I posted this question at all.

Good to know about the "|".

Thanks.

Code: Select all

:: $srcDir = "Q:\scripts_and_notes\"; 
   $destDir = "C:\data_jeffy\app_settings\q_scripts_and_notes\";  
   $starSh = $srcDir."*.sh";
   $starTxt = $srcDir."*.txt";
   $starSublimePrj = $srcDir."*.sublime-project";
   $allFiles = $starSh."|".$starTxt."|".$starSublimePrj;
   backupto $destDir, $allFiles, 2, , , 0, , , 1;
Windows 8.1, 64-bit

aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Re: How to consolidate 3 backupto-s, or suppress confirm dlg

Post by aliteralmind »

Actually, what I'm trying to do doesn't seem to be possible :(

What I want is for the in-progress dialog to display, and then automatically close when it's done. It seems only these options are possible:

- in-progress dialog, which stays open
- no in-progress dialog, but a summary dialog when it's done.
- no dialog at all.

The reason I want this, is because I'm doing stuff on an sftp drive, which is very slow. I want to be able to trigger it, then switch to another application as it's working. I know it's done, by seeing the in-progress dialog disappear in the taskbar.
Last edited by aliteralmind on 15 Jan 2015 22:17, edited 1 time in total.
Windows 8.1, 64-bit

aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Re: How to consolidate 3 backupto-s, or suppress confirm dlg

Post by aliteralmind »

It seems logical, if you request an in-progress dialog, but not a summary dialog, that the in-progress dialog should disappear when done.
Windows 8.1, 64-bit

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: How to consolidate 3 backupto-s, or suppress confirm dlg

Post by bdeshi »

Yes, the progress dialog should take into account the settings (especially [ ] Keep progress dlg open) @ Config->File Ops->Backup Ops->Config
All the more reasonable since other parameters already follow related global settings by default.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: How to consolidate 3 backupto-s, or suppress confirm dlg

Post by admin »

FYI, see change log:

Code: Select all

v10.00.0008 - 2011-07-14 15:42
    * SC backupto: Any progress dialog will now be strictly modal, 
      otherwise the correct sequence of script statements can not be 
      ensured.
    * SC backupto: Any progress dialog will be kept open, so "Keep 
      progress dialog open" (a setting that's not available as argument) 
      is internally ON when the progress dialog is popped via SC 
      backupto.
Unfortunately I have not made any internal notes about why I did this. (And no time to think about it ATM.)

Post Reply