How to backup automatically by button

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
jjk
Member
Member
Posts: 181
Joined: 2003-07-03, 10:41 UTC

How to backup automatically by button

Post by *jjk »

Hi all
I want to copy regularly some files to c:\bkp, without open a tab for c:\bkp.
I created a button

Code: Select all

TOTALCMD#BAR#DATA
cmd.exe /c copy /-Y
%P%N c:\bkp
C:\TotalCmd9\TOTALCMD.EXE,14
That's OK for one source file.
Note that I have added /-Y to get warning in case of overwriting. If same file exists already, DOS windows opens and prompts whether I overwrite or skip. That behaviour is quite annoying also.

If I use %P%S to copy many source files (all in the same source pane), cmd uses copy file1 file2 file3... c:\bkp, that fails of course.

So how to copy the selected files from source pane to c:\bkp (always the same dir) without open tab c:\bkp in target pane ? And, if possible, how to manage overwritings semi-automatically ?

Thanks in advance
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50918
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Why not just add a button for c:\bkp ? Just drag the folder to an empty space in the bar. Then you can drag the selected files/folders to that button to copy them to c:\bkp.
Author of Total Commander
https://www.ghisler.com
jjk
Member
Member
Posts: 181
Joined: 2003-07-03, 10:41 UTC

Post by *jjk »

Ah, simplicity is beauty.
Thanks a lot, and cheers for your new release of TC (I use it since 1994).
Post Reply