Macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have several files in the same folder that I have to change their
attributes to "Ready for Archiving" every day. There must be an easy macro
to select all the files in a folder and change their attributes.

Thanks in advance

Lori
 
Lori said:
I have several files in the same folder that I have to change their
attributes to "Ready for Archiving" every day. There must be an easy macro
to select all the files in a folder and change their attributes.

Thanks in advance

Lori

The attrib command will do it.

Use: attrib +A *

HTH,
Randy
 
Create a batch file, as per this example
In the folder in question, right-click New, Test file
Rename to something like Archive.bat
Right-click this file and choose Edit
Copy and Paste the following two lines

@echo off
attrib +a *.*

Save, close and run.

Or you could list the files, one file per line, as
attrib +a filename1.ext
attrib +a filename2.ext
etc.
instead of the *.* for all files.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top