Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error with Scripting.FileSystemObject
Message
De
09/01/2009 08:45:04
 
 
À
09/01/2009 06:46:40
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01372279
Message ID:
01372324
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform