Anyway to make TC not set the archive attrib when copying

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Gooberslot
Junior Member
Junior Member
Posts: 22
Joined: 2003-09-20, 04:30 UTC

Anyway to make TC not set the archive attrib when copying

Post by *Gooberslot »

I noticed this when I got a new hard drive and started moving stuff around. Everytime I copy or move a file TC resets the archive attribute which really screws up my backup system. Is there anyway to make it not do this? If not, I hope this is an option added to the next version.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

The same at home

Post by *Clo »

2Gooberslot
:) Hello !
- Right, I confirm. I tested copying 2 hidden files, the copies get "Archive+hidden" attributes.
- I don't know if this is a bug or by design…
- I didn't find out any instruction in <wincmd.ini> to change this behaviour. However, it's possible that some new ones be missing in the documents I've.

:mrgreen: Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

I know only the

[Configuration]
SetArchiveBitOnRename =0

Otpion in wincmd.ini. Can't check out now, where it works.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Missing items

Post by *Clo »

2Sheepdog
:) Hi Stefan !
¤ I had already :
SetArchiveBitOnRename=0
when testing; I verified, because it should act also for copies, but no…
- It seems that an instruction or internal commands are missing to get that Gooberslot needs…
- A (poor) workaround is to change the attributes as a single shot : select all >> Files menu >> Change the attributes :|

:mrgreen:  VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

So if needed I can adopt my batch for toggling the readonly bit. This one works with '%l' parameter in a button.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Gooberslot
Junior Member
Junior Member
Posts: 22
Joined: 2003-09-20, 04:30 UTC

Re: Missing items

Post by *Gooberslot »

Clo wrote: - A (poor) workaround is to change the attributes as a single shot : select all >> Files menu >> Change the attributes :|
That wouldn't work for me because I have mixed archive|no-archive files in the same dir.

I hope Christian is reading this thread because this is a feature I really need.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: Missing items

Post by *Sheepdog »

Gooberslot wrote:That wouldn't work for me because I have mixed archive|no-archive files in the same dir.
There's a workaround:

Create a serch filter:

Code: Select all

Tab General:
Search for *.*
Tab Advanced:
date between: unset
Not older than= unset
file size= unset
Attributes= on
Archive= unset
(if desired )Directory=unset
all others: unchanged (grey set)
and save as arc_off


1. Go into the directory you want to copy.
2. Press [Ctrl]+ to dispaly all files, including them from subdirs
3. Pres [NUM+] and choose the ' arc_off' filter. Now all files that have the archive bit unset should be selected.
4. Press [Alt]+[m] and then [v] for saving this filelist and save it with appropriate name and path (so you will find it if needed ;) ) e.g. c:\taotalcmd\selections\arch_unset.sel
5. press [ctrl]+ get back to normal view.
6. copy your directory to the desired target.
7. change into the target dir, press [ctrl]+ for the branch view
8. Press [alt]+[m] and [l] for loading selection from file.
9. choose the previos saved file (arch_unset.sel)
10. Now all files with former unset archive bit are selected and you can
11. Press [Alt]+[f] and [c] to unset the archive bit in the selected files.

It sounds a bit complicated, but if you try it you will see thats usable. If you have to keep the archive bit more often you create buttons with commands cm_LoadSelectionFromFile/cm_SaveSelectionToFile. Unfortunately it seems you couldn't pass a file or path as parameter.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Post Reply