PC Review


Reply
Thread Tools Rate Thread

change attrib file

 
 
phil89
Guest
Posts: n/a
 
      29th Feb 2008
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
 
Reply With Quote
 
 
 
 
urkec
Guest
Posts: n/a
 
      29th Feb 2008
You can try using Shell function with Attrib:

Shell "cmd /k attrib /? ", vbNormalFocus

--
urkec


"phil89" wrote:

> 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
>

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      29th Feb 2008
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


"phil89" <(E-Mail Removed)> wrote in message
news:c2539c16-9f04-4154-ab27-(E-Mail Removed)...
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Get a access denied trying to change the attribute with attrib. Mihaela Roata Windows Vista File Management 0 3rd Nov 2010 08:19 PM
Re: Can't save file read only attrib Thorsten Matzner Windows XP New Users 9 6th Nov 2009 04:49 PM
cannot delete folder pr change attrib nesredep egrob Microsoft Windows 2000 1 28th Dec 2004 03:09 PM
Change system32 attrib in Recovery Console? Dan Windows XP General 2 23rd Jan 2004 07:26 PM
how to change the attrib of the directory of my documents Xiaobo Windows XP Basics 2 15th Oct 2003 04:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:09 AM.