About Auto-rename option

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
totfun
Junior Member
Junior Member
Posts: 67
Joined: 2003-03-11, 07:13 UTC

About Auto-rename option

Post by *totfun »

Hello!

I like the TC6.x new copy option "Auto-rename" but I'd like also a sub-option like the following:

"Auto-rename only if the files have a different date, otherwise skip"

The sub-option could be inserted in a new section (ex: Auto-rename options) in Configuration > Copy/Delete
(or in wincmd.ini file only).


My goal:
In a slow LAN, from a folder on a client, I want to copy to a folder on a server only the completely new files and the updated (edited, modified) files.
I want to keep (auto-renaming them) the old versions on the server. (*)

Can anyone suggest me a way to do it with TC6.01?

totfun

(*) I don't want to overwrite anything on the server. I want to achieve it using TC autorename feature but I don't want useless, copy-time and space wasting, duplicate files on the server. (At least in my case).
Last edited by totfun on 2003-12-19, 10:37 UTC, edited 2 times in total.
User avatar
Coco
Senior Member
Senior Member
Posts: 223
Joined: 2003-02-07, 13:35 UTC
Location: Belgium
Contact:

Post by *Coco »

Hi totfun,

In one operation not but in two maybe :lol:

1) Compare Directories (Shift + F2)
2) Copy the different files with the autorename.
Alain
User avatar
totfun
Junior Member
Junior Member
Posts: 67
Joined: 2003-03-11, 07:13 UTC

Post by *totfun »

Hello Coco!
Thank you for your suggestion!
1) Compare Directories (Shift + F2)
2) Copy the different files with the autorename.
The problem is that the folder contains (many) subfolders. Is it your suggestion suitable also in this scenario, without doing a "folder by folder" operation?
If it is suitable, how to proceed?
(I don't know Shift+F2 feature in depth and excuse me if I ask you instead of reading better the TC help...)

totfun
User avatar
ovm
Junior Member
Junior Member
Posts: 17
Joined: 2003-11-20, 21:52 UTC
Location: Netherlands

Post by *ovm »

Totfun,

actually I use ARJ.exe for this purpose. Activated with a button in the menu bar.

This is the content of the .bat file to make an archive:

rem a1 = any files & directories
rem r = terukeren naar directory
rem jf1 = gebruik volledige path zonder drive
rem b1 = backup changed, reset archiefbit
rem p1 = match pathname with subdirs
rem m4 = fastest compressie
rem i2 = % en graph
rem jm1 = max compressie
rem va = mutiple disks
arj a x:\afbthuis.arj j:\00afbeeldingen -a1 -r -jf1 -b1 -p1 -m4 -i2 -jm1


the functions behind rem are the explnations
The last row is the command function to start arj
x:\ = the target drive
afbthuis.arj is the name of the new file to be created
j:\ is the source drive
00afbeeldingen is the source directory.

All new files, changed files in all (sub)dirs are catched and packed


The arj file must be unpacked at the second computer. Again with a button in the menu bar. Only the new or changed files will be overwriten.

the (2nd) batch file:

rem r = keer terug naar subdirectory
rem u = update new en newer
rem y = veronderstel YES op vragen
rem b3 = reset archiefbit na restore (dus geen archieveringscode !)
rem p1 = match pathname met subdirs
rem jf1 = gebruik volledige pathnaam
rem i2 = % en graph
arj x h:\afbthuis.arj c:\ -r -u -y -b3 -i2

where c:\ is the target drive.


To delete the .arj file from the source disk:

arj d h:\afbthuisl.arj *.*

Be shure the batch files and the ARJ (32 bits) program are in the same dir.
Download arj.exe from the internet.

Try it and you wil love it with just 1 click in Total Commander!

gr. mario
User avatar
Coco
Senior Member
Senior Member
Posts: 223
Joined: 2003-02-07, 13:35 UTC
Location: Belgium
Contact:

Post by *Coco »

I would have suggest via the CTRL+B but the compare directory does not seems to work correctly in this mode ...
Alain
User avatar
totfun
Junior Member
Junior Member
Posts: 67
Joined: 2003-03-11, 07:13 UTC

Post by *totfun »

Hello ovm,
Thank you for you suggestion!

I don't know if I'm missing something reading your post or you missed something reading mine
You write:
Only the new or changed files will be overwriten.
I wrote:
I want to keep (auto-renaming them) the old versions on the server.
2Coco
I would have suggest via the CTRL+B but the compare directory does not seems to work correctly in this mode ...
...and even if it worked, we lose folder structure when we copy.

totfun
User avatar
totfun
Junior Member
Junior Member
Posts: 67
Joined: 2003-03-11, 07:13 UTC

Post by *totfun »

2coco
I have tried cm_FileSync, too.
Cm_FileSync could be suitable for the subdirectories but unfortunately it seems that in no pass of that way I can choose autorename copy option. Did you try it, too?

totfun
User avatar
ovm
Junior Member
Junior Member
Posts: 17
Joined: 2003-11-20, 21:52 UTC
Location: Netherlands

Post by *ovm »

totfun wrote:I wrote:I want to keep (auto-renaming them) the old versions on the server.
I think I understand what you mean, but i'm not shure.
I think I am in the same situation and solved it with this:

1) all people in a group can change a file on a network drive.
Daily I make a backup with the procedure as mentioned in prior post
So the changed and/or new files are stored at my home computer

2) I make a backup of my home files with the same procedure
So alle new files (including from work) are packed

3) at work I unpack these files in a private directory

So finaly:
the original files are on the network drive
the same original files are on my home computer
the same original files are on my computer at work

When the files are new or changed I automaticaly take them home, and return them to a specified dir at work.

So I have a backup at my home place and after return to office, the same backup at the office.
Is this what you mean?

gr. mario
User avatar
Coco
Senior Member
Senior Member
Posts: 223
Joined: 2003-02-07, 13:35 UTC
Location: Belgium
Contact:

Post by *Coco »

totfun wrote:I have tried cm_FileSync, too.
Cm_FileSync could be suitable for the subdirectories but unfortunately it seems that in no pass of that way I can choose autorename copy option. Did you try it, too?
I did not propose you this because indeed the autorename is not present in this function. Otherwise it would have been perfect for you need...
Alain
User avatar
totfun
Junior Member
Junior Member
Posts: 67
Joined: 2003-03-11, 07:13 UTC

Post by *totfun »

2 OvM
I think that it is not exactly what I mean. Anyway I'll test your solution to better see. It can be an interesting solution for other similar situations, too.

2Coco
I did not propose you this because indeed the autorename is not present in this function. Otherwise it would have been perfect for you need...
BTW: Do you know why the 2 auto-rename options are selectable only at beginning of a copy operation and not as a choice for the user when TC asks the user? Too many buttons or other reasons?
User avatar
Coco
Senior Member
Senior Member
Posts: 223
Joined: 2003-02-07, 13:35 UTC
Location: Belgium
Contact:

Post by *Coco »

Hi totfun,

Because when you don't choose it at beginning it mean you are in "manual" mode you can rename each file it finds as already existing. (But only the files you are currently copying not the already existing file)

ps: I hope you will understand, because I can't find a good sentence in english....I'm too tired. :-)
Alain
Post Reply