Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error with Scripting.FileSystemObject
Message
From
09/01/2009 08:45:04
 
 
To
09/01/2009 06:46:40
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01372279
Message ID:
01372324
Views:
17
>Hello Everybody
>
>I have a cursor with filenames + path as result from an recursive directory scan.(all subfolders)
>
>I do a scan to get some file attributes.
>SELECT (thisform.l_cursor)
>
>l_FSO = CREATEOBJECT("Scripting.FileSystemObject")
>
>SCAN
>
> l_FileName = ALLTRIM(path)+ALLTRIM(filename)
> l_File = l_FSO.GetFile(l_FileName)
> replace geaendert WITH l_File.DateLastModified
> replace gelesen with l_File.DateLastAccessed
> replace angelegt WITH l_File.DateCreated
>
>endscan
>
>Normaly everything works as expected.
>But for some files in my cursor i get an error
>OLE Error Ox800a0035 Unkown COM Status ???
>
>The releated files looks normal for example: (d:\myfiles\album2\xyz.mp3)
>I can repeat this error. Scanning all files in d:\myfiles will allways crash with d:\myfiles\album2\xyz.mp3.
>In other directories my code crashes at some other files.

Hi Albert

Have look at download#25487. It is pure fox class which reads folders and their subfolders.

HTH
Sergio
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Reply
Map
View

Click here to load this message in the networking platform