| Author |
Topic  |
|
|
Carefree
Advanced Member
    
Philippines
4224 Posts |
Posted - 18 January 2011 : 06:06:56
|
Here's an excerpt from a script:
I get occasional permission denied runtime errors (800a0046) for the first line in this routine. The folders in question all have permissions granted and there aren't any restricted system folders involved. How can I determine the objItem.Name in question when it fails? |
Edited by - Carefree on 18 January 2011 06:07:32 |
|
|
kyodai
New Member

Azerbaijan
74 Posts |
Posted - 17 February 2011 : 16:10:13
|
Without trying myself I'd instantly think of Response.Write" Item name " & objItem.Name
Otherwise i can only think of Try/Catch to debug this. Maybe the sever log will reveal more... |
 |
|
|
Carefree
Advanced Member
    
Philippines
4224 Posts |
Posted - 18 February 2011 : 06:13:53
|
| The response.write method won't work here. If it doesn't read the file, it doesn't get a name. |
 |
|
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 18 February 2011 : 08:41:17
|
| Yeah, but if you have a running list of the names before it, you know what files it isn't. That can help in narrowing down the problem. |
 |
|
|
Carefree
Advanced Member
    
Philippines
4224 Posts |
Posted - 18 February 2011 : 22:53:33
|
I've tried that. Tried setting all permissions on the next "logical" file to be hit, same results. The program works from root-through on every drive that isn't a system drive, provided that there are no pagefiles or recycle bins.
BTW to eliminate automatically created recycle bins in non-system drives, first delete the recycle bin, then create a 0-byte text file, name it "Recycler", and finally set its attributes to system file, read-only, hidden. That'll prevent windows from recreating an unwanted/unused trash can.
Of course, if you do that - files you delete are just gone ... not in a trash can to be recovered or emptied. |
 |
|
|
Doug G
Support Moderator
    
USA
6493 Posts |
Posted - 19 February 2011 : 00:40:58
|
I don't know if this is useful, and it's a VB example not vbscript. It's an example of directory recursion using the filesystem object.
http://support.microsoft.com/kb/185601
|
====== Doug G ====== Computer history and help at www.dougscode.com |
 |
|
|
Carefree
Advanced Member
    
Philippines
4224 Posts |
Posted - 19 February 2011 : 03:17:30
|
| I've got it pulling files, directories, sub-directories; that's not an issue. The problem is in some hidden, unspecified files which do not want to cooperate with the FSO. |
 |
|
|
HuwR
Forum Admin
    
United Kingdom
20611 Posts |
|
|
Carefree
Advanced Member
    
Philippines
4224 Posts |
Posted - 19 February 2011 : 07:35:00
|
Modified to remove sensitive info:
|
 |
|
|
HuwR
Forum Admin
    
United Kingdom
20611 Posts |
|
|
Carefree
Advanced Member
    
Philippines
4224 Posts |
Posted - 20 February 2011 : 01:20:43
|
| Didn't solve the issue, Huwr, but may have resulted in a slight speed improvement not using the collection. |
 |
|
|
HuwR
Forum Admin
    
United Kingdom
20611 Posts |
|
| |
Topic  |
|