Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Folder size, permission denied

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,64079
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Folder size, permission denied
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Folder size, permission denied - 9/5/2008 10:37:32 PM   
  runtime

 

Posts: 1
Score: 0
Joined: 9/5/2008
Status: offline
I am trying the code below in a .vbs script on Windows Vista to find the total size of a folder and any of its subfolders, and I'm plugging in different folder paths to test it. This script is based on one at the MS Scripting Center, and it works for many folders. It's also pretty fast in calculating the folder size. However, for some folders it will generate an error of Permission Denied (800A0046).


      

What's the best way to work around this problem?

Thanks!
 
 
Post #: 1
 
 RE: Folder size, permission denied - 9/7/2008 2:38:08 PM   
  wjcott

 

Posts: 41
Score: 0
Joined: 9/7/2008
Status: offline
It appears that the same behavior has been noted here: http://www.visualbasicscript.com/m_57891/tm.htm.  If you are just looking to work with the error, you may want to change this...


      

... to ...


      

(in reply to runtime)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Folder size, permission denied Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts