Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

VBScript Error codes when trying to access the extended file properties ?

$
0
0

Hi,

I have a script that retrieves the file properties like product name,product version,Copyright etc.. information from a list of files under a folder.

I have used the Err object to get the errors if any, while getting the file information.So, if there is any error than I get the Err.Number, Err.Description,Err.Source with the file name and the folder.

I am usually getting 3 types of errors while doing this;

================================

Folder: C:\Documents and Settings
FileName: S.LOG
Error: 424
Source: Microsoft VBScript runtime error
Description: Object required

Folder: C:\MSOCache
FileName: LD.zip
Error: 70
Source: Microsoft VBScript runtime error
Description: Permission denied

Folder: C:\$Recycle.Bin\S-1-5-18\$RN0QZUM.Gadget
FileName: gadget.html
Error: -2147467259
Source:
Description:

================================

Now, for Error 424 & 70 as the description says its quite the opposite when i really look into the folders.

424 says object required, but I don't have access to the file.

70 says permission denied, but I am able to access the file.

Please throw some light on this ?

And also if someone can help me out with the "-2147467259" error please ?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>