Discussion:
Best way to reset archive bit in all files
(too old to reply)
Bill Snow
2010-02-17 19:31:38 UTC
Permalink
The Backup My PC 5 does not reset the archive bits when performing a
Disaster Recovery backup. Thereafter to do incremental backups the archive
bit needs to be reset. Including Hidden and System bits.

Does anyone know a good way to do this?

Thanks,

Bill Snow
Robert Macy
2010-02-17 20:18:59 UTC
Permalink
Post by Bill Snow
The Backup My PC 5 does not reset the archive bits when performing a
Disaster Recovery backup. Thereafter to do incremental backups the archive
bit needs to be reset. Including Hidden and System bits.
Does anyone know a good way to do this?
Thanks,
Bill Snow
use DOS window and attrib command?

Displays or changes file attributes.

ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:]
[path]filename] [/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.


Make it a batch file and put it on your desktop
Bill-Snow
2010-02-17 22:13:18 UTC
Permalink
Post by Bill Snow
The Backup My PC 5 does not reset the archive bits when performing a
Disaster Recovery backup. Thereafter to do incremental backups the archive
bit needs to be reset. Including Hidden and System bits.
Does anyone know a good way to do this?
Thanks,
Bill Snow
use DOS window and attrib command?

Displays or changes file attributes.

ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:]
[path]filename] [/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.


Make it a batch file and put it on your desktop

Thank you Robert,

I should have explained better where my problem was. I have done the above
and it reset all except the Hidden and System files. What I need is a way to
do all those. As best I can tell the H would have to unset then the A unset
and then H reset, but only if it was previously set. Could not find any
information on the exact way to concatinate these three actions in a batch
file. Like wise for the System flag.
Bill Blanton
2010-02-18 00:35:58 UTC
Permalink
Post by Robert Macy
Post by Bill Snow
The Backup My PC 5 does not reset the archive bits when performing a
Disaster Recovery backup. Thereafter to do incremental backups the archive
bit needs to be reset. Including Hidden and System bits.
Does anyone know a good way to do this?
Thanks,
Bill Snow
use DOS window and attrib command?
Displays or changes file attributes.
ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:]
[path]filename] [/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.
Make it a batch file and put it on your desktop
Thank you Robert,
I should have explained better where my problem was. I have done the above
and it reset all except the Hidden and System files. What I need is a way to
do all those. As best I can tell the H would have to unset then the A unset
and then H reset, but only if it was previously set. Could not find any
information on the exact way to concatinate these three actions in a batch
file. Like wise for the System flag.
A good rule of thumb, so that you don't have to remember the logic, is
to look at the command line help options (above) and go forward through
the list to +set and backwards to -clear.

attrib +r +a +s +h foo.txt
attrib -h -s -a -r foo.txt

Remove or add +/- switches to suit your needs.

Remembering a previously set (then cleared attribute) is really beyond
the scope of a command batch script.

If the program you're using can't do incremental backups, you might be
better off finding something else. I would only use an incremental
*file backup* strategy for user files anyway. Image or clone the drive
to take care of the system.
PCR
2010-02-18 01:03:33 UTC
Permalink
Post by Robert Macy
Post by Bill Snow
The Backup My PC 5 does not reset the archive bits when performing a
Disaster Recovery backup. Thereafter to do incremental backups the
archive bit needs to be reset. Including Hidden and System bits.
Does anyone know a good way to do this?
Thanks,
Bill Snow
use DOS window and attrib command?
Displays or changes file attributes.
ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:]
[path]filename] [/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.
Make it a batch file and put it on your desktop
Thank you Robert,
I should have explained better where my problem was. I have done the
above and it reset all except the Hidden and System files. What I
need is a way to do all those. As best I can tell the H would have to
unset then the A unset and then H reset, but only if it was
previously set. Could not find any information on the exact way to
concatinate these three actions in a batch file. Like wise for the
System flag.
4DOS seems to have fixed the ATTRIB command not to care about
hidden/system when setting the archive bit...

C:\>attrib detlog.txt
_HSA_ C:\DETLOG.TXT

C:\>attrib detlog.txt -a
_HSA_ -> _HS__ C:\DETLOG.TXT

C:\>attrib detlog.txt +a
_HS__ -> _HSA_ C:\DETLOG.TXT

It's improved many of the regular DOS commands. I've got...

4DOS 7.50 (Win98) DOS 7.10
Copyright 1988-2004 Rex Conn & JP Software Inc. All Rights Reserved

On mm's suggestion, it was a free download at...
http://www.jpsoft.com/
...However, I can't find it there anymore.
--
Thanks or Good Luck,
There may be humor in this post, and,
Naturally, you will not sue,
Should things get worse after this,
PCR
***@netzero.net
mm
2010-02-20 06:28:05 UTC
Permalink
Post by PCR
Post by Robert Macy
Post by Bill Snow
The Backup My PC 5 does not reset the archive bits when performing a
Disaster Recovery backup. Thereafter to do incremental backups the
archive bit needs to be reset. Including Hidden and System bits.
Does anyone know a good way to do this?
Thanks,
Bill Snow
use DOS window and attrib command?
Displays or changes file attributes.
ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:]
[path]filename] [/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.
Make it a batch file and put it on your desktop
Thank you Robert,
I should have explained better where my problem was. I have done the
above and it reset all except the Hidden and System files. What I
need is a way to do all those. As best I can tell the H would have to
unset then the A unset and then H reset, but only if it was
previously set. Could not find any information on the exact way to
concatinate these three actions in a batch file. Like wise for the
System flag.
4DOS seems to have fixed the ATTRIB command not to care about
hidden/system when setting the archive bit...
C:\>attrib detlog.txt
_HSA_ C:\DETLOG.TXT
C:\>attrib detlog.txt -a
_HSA_ -> _HS__ C:\DETLOG.TXT
C:\>attrib detlog.txt +a
_HS__ -> _HSA_ C:\DETLOG.TXT
It's improved many of the regular DOS commands. I've got...
4DOS 7.50 (Win98) DOS 7.10
Copyright 1988-2004 Rex Conn & JP Software Inc. All Rights Reserved
On mm's suggestion, it was a free download at...
http://www.jpsoft.com/
...However, I can't find it there anymore.
You rang?

Well, for winXP it's at that address and it's called TCC LE.

But I can't remember what it is called for win98.


While I'm looking I'll tell you that it also has the ability iirc to
go through all the files finding only the hidden and system files,
since iiuc the others have had their bit reset already.

Well, I have the file I dl'd. It's called 4DOS750.exe and it's
1,282,291 bytes. I could email it to you. I guess that's pretty long
to email. I could ftp it to you had a webspace where I could do that.

But it appears to be here too
http://freesoft.freedos.pri.ee/FreeSoft/os.htm which link goes
straight to the jpsoft site, so it's good.

And maybe one of these two pages, which talk about it but I can't find
the link http://siteadvisor.es/sites/jpsoft.com/downloads/14069298/
http://siteadvisor.es/sites/jpsoft.com Use the first one.

And be sure to learn to use the LIST command. It's great. Far far
faster if you just want to look at a file or group of files and don't
want to edit it.
PCR
2010-02-21 00:37:06 UTC
Permalink
..
Post by mm
Post by PCR
Post by Robert Macy
Post by Bill Snow
The Backup My PC 5 does not reset the archive bits when performing
a Disaster Recovery backup. Thereafter to do incremental backups
the archive bit needs to be reset. Including Hidden and System
bits.
Does anyone know a good way to do this?
Thanks,
Bill Snow
use DOS window and attrib command?
Displays or changes file attributes.
ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:]
[path]filename] [/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.
Make it a batch file and put it on your desktop
Thank you Robert,
I should have explained better where my problem was. I have done the
above and it reset all except the Hidden and System files. What I
need is a way to do all those. As best I can tell the H would have
to unset then the A unset and then H reset, but only if it was
previously set. Could not find any information on the exact way to
concatinate these three actions in a batch file. Like wise for the
System flag.
4DOS seems to have fixed the ATTRIB command not to care about
hidden/system when setting the archive bit...
C:\>attrib detlog.txt
_HSA_ C:\DETLOG.TXT
C:\>attrib detlog.txt -a
_HSA_ -> _HS__ C:\DETLOG.TXT
C:\>attrib detlog.txt +a
_HS__ -> _HSA_ C:\DETLOG.TXT
It's improved many of the regular DOS commands. I've got...
4DOS 7.50 (Win98) DOS 7.10
Copyright 1988-2004 Rex Conn & JP Software Inc. All Rights Reserved
On mm's suggestion, it was a free download at...
http://www.jpsoft.com/
...However, I can't find it there anymore.
You rang?
Uh-huh.
Post by mm
Well, for winXP it's at that address and it's called TCC LE.
But I can't remember what it is called for win98.
Well, the file is called 4DOS750.exe, just as you say below & the same
size you say.
Post by mm
While I'm looking I'll tell you that it also has the ability iirc to
go through all the files finding only the hidden and system files,
since iiuc the others have had their bit reset already.
It has lots & lots of improvements over Windows DOS & abilities. It's
COPY likely has all the abilities of Phillipson's XXCOPY! Thanks for the
recommendation back then, mm. For instance, it has /C & /U options...

.......Quote 4DOS documantation.....................
/C: (Changed files) Copy files only if the destination file
exists and is older than the source (see also /U). This option
is useful for updating the files in one directory from those in
another without copying any newly created files. (Before
using /C in a network environment be sure to read the note
under /U.)

/U: (Update) Copy each source file only if it is newer than a
matching destination file or if a matching destination file does
not exist (see also /C). This option is useful for keeping one
directory matched with another with a minimum of copying.

The time comparisons used with /U may not always work reliably
across a network, due to differences in time zone and in the file
time storage method between the local and remote systems. Be sure
to do some non-destructive testing (e.g. with /N) before depending
on this option to yield the results you want in a network
environment.
..........EOQ 4DOS documentation.................
Post by mm
Well, I have the file I dl'd. It's called 4DOS750.exe and it's
1,282,291 bytes. I could email it to you. I guess that's pretty long
to email. I could ftp it to you had a webspace where I could do that.
No -- I've got it! I just can't spot it there anymore for Snow to take.
Yea, that's the name & the size.
Post by mm
But it appears to be here too
http://freesoft.freedos.pri.ee/FreeSoft/os.htm which link goes
straight to the jpsoft site, so it's good.
All right. I see it there. Good. I recommend it! Looks like a good site
worthy of exploration!
Post by mm
And maybe one of these two pages, which talk about it but I can't find
the link http://siteadvisor.es/sites/jpsoft.com/downloads/14069298/
http://siteadvisor.es/sites/jpsoft.com Use the first one.
And be sure to learn to use the LIST command. It's great. Far far
faster if you just want to look at a file or group of files and don't
want to edit it.
Uh-huh. That's one of the many big improvements!
--
Thanks or Good Luck,
There may be humor in this post, and,
Naturally, you will not sue,
Should things get worse after this,
PCR
***@netzero.net
crane
2010-03-05 13:27:19 UTC
Permalink
Post by PCR
4DOS seems to have fixed the ATTRIB command not to care about
hidden/system when setting the archive bit...
bingo,, that is the answer to his prob'.
Post by PCR
...However, I can't find it there anymore.
ask nicely, seek, and you will find.
PCR
2010-03-06 02:39:44 UTC
Permalink
Post by crane
Post by PCR
4DOS seems to have fixed the ATTRIB command not to care about
hidden/system when setting the archive bit...
bingo,, that is the answer to his prob'.
Glad to have been of assistance, whether to Snow or to you.
Post by crane
Post by PCR
...However, I can't find it there anymore.
ask nicely, seek, and you will find.
Looks like it's been rediscovered by another in this thread. Thanks,
anyway.
--
Thanks or Good Luck,
There may be humor in this post, and,
Naturally, you will not sue,
Should things get worse after this,
PCR
***@netzero.net
Robert Macy
2010-02-18 03:10:22 UTC
Permalink
Post by Robert Macy
Post by Bill Snow
The Backup My PC 5 does not reset the archive bits when performing a
Disaster Recovery backup. Thereafter to do incremental backups the archive
bit needs to be reset. Including Hidden and System bits.
Does anyone know a good way to do this?
Thanks,
Bill Snow
use DOS window and attrib command?
Displays or changes file attributes.
ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:]
[path]filename] [/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.
Make it a batch file and put it on your desktop
Thank you Robert,
I should have explained better where my problem was. I have done the above
and it reset all except the Hidden and System files. What I need is a way to
do all those. As best I can tell the H would have to unset then the A unset
and then H reset, but only if it was previously set. Could not find any
information on the exact way to concatinate these three actions in a batch
file. Like wise for the System flag.
Use the 'IF' comands,
Don Phillipson
2010-02-20 16:00:40 UTC
Permalink
Post by Bill Snow
The Backup My PC 5 does not reset the archive bits when performing a
Disaster Recovery backup. Thereafter to do incremental backups the archive
bit needs to be reset. Including Hidden and System bits.
Does anyone know a good way to do this?
Presumably BS needs to do this solely to make his backup
software do what he requires. Possibly XXCOPY (free from
www.xxcopy.com ) may do all he wants without this extra
intermediate step.
--
Don Phillipson
Carlsbad Springs
(Ottawa, Canada)
Continue reading on narkive:
Loading...