Copy directories in batch

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
gonen52
Junior Member
Junior Member
Posts: 15
Joined: 2013-01-11, 14:24 UTC

Copy directories in batch

Post by *gonen52 »

Hello

I am new here and looking for a sample batch file to copy directory from one drive to another drive using 'override all older'

Can I get some help here ?

thanks !!!
User avatar
nsp
Power Member
Power Member
Posts: 1949
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Copy directories in batch

Post by *nsp »

gonen52 wrote:Hello

I am new here and looking for a sample batch file to copy directory from one drive to another drive using 'override all older'

Can I get some help here ?

thanks !!!
Give a look to robocopy or xxcopy and create your batch using it.
With TC is is also possible to synchonize, copy only newest file, ...
User avatar
white
Power Member
Power Member
Posts: 5987
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Copy directories in batch

Post by *white »

gonen52 wrote:I am new here and looking for a sample batch file to copy directory from one drive to another drive using 'override all older'
You could use 'download lists'.

Example: Create a backup of the windows directory, overwriting all older files, no confirmation before overwriting Read only/Hidden/System files, skip all which cannot be opened for reading

* Create a file with the following contents.

Code: Select all

copyflags:243
copy:c:\windows -> i:\windows 
* Make the file read only so it won't be changed by TC and you can use the file more than once.

* Execute the list by using menu option Net/"FTP Download From List".

See also:
[wish] Total Commander batch files
gonen52
Junior Member
Junior Member
Posts: 15
Joined: 2013-01-11, 14:24 UTC

very nice

Post by *gonen52 »

and almost exactly what I needed...

Can this 'download list' command be executed via .bat file ?

or

Can I define a shortcut to run this 'download list' command (so I do not need to type again the name of the file )

Thank you !!!
User avatar
white
Power Member
Power Member
Posts: 5987
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: very nice

Post by *white »

gonen52 wrote:Can this 'download list' command be executed via .bat file ?
No.
gonen52 wrote:Can I define a shortcut to run this 'download list' command (so I do not need to type again the name of the file )
You can assign cm_FtpDownloadList to a shortcut key, but you would still need to enter the name. The last used name is remembered and stored in wincmd.ini.
gonen52
Junior Member
Junior Member
Posts: 15
Joined: 2013-01-11, 14:24 UTC

Post by *gonen52 »

thank you very much !!!!!!!!!!!!
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

The last used name is remembered and stored in wincmd.ini.
So it may be written to INI just before executing cm_FtpDownloadList:) e.g. TCFS2 may be used to write that string into INI and then execute cm_FtpDownloadList.
Post Reply