change attrib file

  • Thread starter Thread starter phil89
  • Start date Start date
P

phil89

Hi,

Could VBA excel change attrib file for many files ? like

attrib -R * /S
attrib -A * /S

When i re-install my macro somes file could not be deleted

Regards
Philippe
 
You can try using Shell function with Attrib:

Shell "cmd /k attrib /? ", vbNormalFocus
 
Look up the SetAttr function (and its companion GetAttr function) in the
help files... you can change the attributes of a specified file using it.

Rick
 

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