Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Batch changing of archive attribute

Batch changing of archive attribute

Forum Windows XP : Windows XP General Discussion - Batch changing of archive attribute

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

I do my backups by means of DOS batch files that copy to CDs the files
in certain directories that have their archive attributes set on.

I have now bought a new machine running XP. I want to set the archive
attributes off in all files in certain directories whose file dates
are earlier than a particular date.

In order to do this, I did a search for all files whose file dates
satisfied my need and which were located in the particular
directories. When the search was complete, I selected all of the
found files and tried to set their archive bits off by using the
File/Properties dialog. However, the results were uneven.

Does anybody have a better way to do this?

Musawwir Spiegel
musman@aprilfool.info

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

You could perhaps temporarily copy the files identified after your search to
a temporary folder, open up a command prompt, in the folder and issue the
command

attrib -a *.*

Then copy them back (depending on how many directories are involved of
course).

Jon




"Musawwir Spiegel" <mms@spiegel-law.com> wrote in message
news:g899a11m36mp5p9ic144jtnecrggbdmomv@4ax.com...
>I do my backups by means of DOS batch files that copy to CDs the files
> in certain directories that have their archive attributes set on.
>
> I have now bought a new machine running XP. I want to set the archive
> attributes off in all files in certain directories whose file dates
> are earlier than a particular date.
>
> In order to do this, I did a search for all files whose file dates
> satisfied my need and which were located in the particular
> directories. When the search was complete, I selected all of the
> found files and tried to set their archive bits off by using the
> File/Properties dialog. However, the results were uneven.
>
> Does anybody have a better way to do this?
>
> Musawwir Spiegel
> musman@aprilfool.info

Reply to Jon

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

"Musawwir Spiegel" <mms@spiegel-law.com> wrote in message
news:g899a11m36mp5p9ic144jtnecrggbdmomv@4ax.com...
> I do my backups by means of DOS batch files that copy to CDs the files
> in certain directories that have their archive attributes set on.
>
> I have now bought a new machine running XP. I want to set the archive
> attributes off in all files in certain directories whose file dates
> are earlier than a particular date.
>
> In order to do this, I did a search for all files whose file dates
> satisfied my need and which were located in the particular
> directories. When the search was complete, I selected all of the
> found files and tried to set their archive bits off by using the
> File/Properties dialog. However, the results were uneven.
>
> Does anybody have a better way to do this?
>
> Musawwir Spiegel
> musman@aprilfool.info

A more elegant way would be to use xxcopy.exe
to copy your files, followed by attrib.exe /s /b to
reset their attributes. With xxcopy (which you need
to download), you can select which files are to be
copied: Either those before a given date or after a
given date. xcopy.exe is sadly lacking in this regard.

Reply to Anonymous
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Batch changing of archive attribute
Go to:

There are 1189 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them