Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Archive Bit not copied during Synch

 
Post new topic   Reply to topic     Forum Index -> Support
Author Message
keashdoc



Joined: 12 Jun 2007
Posts: 1

PostPosted: Tue Jun 12, 2007 12:39 pm    Post subject: Archive Bit not copied during Synch Reply with quote

Hi,

We want the archive bit status for the files to be copied during transfer. I know vice-versa won't simply consider a file being different if only the archive bit status has changed. Therefore, we wrote a program that changes the date stamp of the file forward by a day and resets the archive bit.

Vice-versa does recognize the file as being changed and copies it but in the destination, the archive bit is SET even though in the original its reset. Is there any way around this?

Thanks

K
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8759

PostPosted: Mon Jun 18, 2007 7:32 am    Post subject: Reply with quote

If I am not mistaken, Windows sets the archive bit if a file is written to. I do not think it is ViceVersa setting the archive bit. You could run a script after the ViceVersa profile is finished, with the command attrib to change the archive attribute.
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8759

PostPosted: Wed Jun 20, 2007 3:48 am    Post subject: Reply with quote

More info on the ATTRIB command:

ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] filespec [/S]

+ Sets an attribute.
- Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
/S Processes files in all directories in the specified path.

If you want to clear the Archive attribute bit of all the files in a directory, execute the following command line.

ATTRIB -A c:\mydir\*

This could be put in batch file and the batch file could be run after ViceVersa is finished ( see ViceVersa scripts: http://www.tgrmn.com/web/kb/category10.htm )
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com


Last edited by TGRMN Software on Fri Aug 28, 2009 2:37 am; edited 1 time in total
Back to top
genem



Joined: 17 Apr 2009
Posts: 10

PostPosted: Fri Aug 28, 2009 12:24 am    Post subject: Reply with quote

Quote:
If you want to clear the Archive attribute bit of all the files in a directory, execute the following command line.

ATTRIB -A c:\mydir\*

This could be put in batch file and the batch file could be run after ViceVersa is finished (see ViceVersa scripts: http://www.tgrmn.com/web/kb/category10.htm)


I'm trying to do this. As VVengine runs things quitely, I wanted some assurance files were copied off and thought it would be nice to see the Archive bits get cleared. It certainly would be nice to have that as an option inside ViceVersa.

However, I tried this suggestion and the profile (set to run on any change) kept running over and over. Then it dawned on me that ATTRIB is probably touching the dir even if it's not flipping any bits, and therefore initiating the profile again. So, I move this to run Before the comparison. The profile kept running constantly again! Can't figure why.

I'm not seeing how this suggestion can work.

Gene
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8759

PostPosted: Fri Aug 28, 2009 2:43 am    Post subject: Reply with quote

Hello
if you are running the profile as soon as file changes happen , the attrib command may be triggering a profile run. VVEngine is always monitoring for file changes even before file comparison.

thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
genem



Joined: 17 Apr 2009
Posts: 10

PostPosted: Fri Aug 28, 2009 2:47 am    Post subject: Reply with quote

Right, so I don't see the initial suggestion posted in this thread as ever working.

Guess monioting the Archive bits is not realistic.
thanks.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8759

PostPosted: Fri Aug 28, 2009 3:44 am    Post subject: Reply with quote

Hi, it can be done if the profile does not run as soon as file changes are detected in the folder where the archive bit is modified in the script, e.g. scheduled.
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: