Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to work with files in system/hidden folders
Message
De
08/01/2000 13:14:35
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00314887
Message ID:
00314953
Vues:
49
>Jim,
>
>ADIR() can read those folders.
>
>
lcDir = "c:\windows\temporary internet files\"
>
>create cursor tempfiles ( cFilename c(80), nSize n(10), dMod d )
>n = adir( laFolders, lcDir + "*.*", "shd" )
>
>for i = 1 to n
>   if ( ( "S" $ laFolders[i,5] ) and ( "D" $ laFolders[i,5] ) and ;
>        ! ( "." $ laFolders[i,1] ) )
>      lcFolder = lcDir + laFolders[i,1] + "\"
>      m = adir( laFiles, lcFolder + "*.*" )
>      for j = 1 to m
>         insert into tempfiles ;
>            values( lcFolder + laFiles[j,1], laFiles[j,2], laFiles[j,3] )
>      endfor
>   endif
>endfor
>
>index on nSize tag nSize
>
>browse nowait
>
>>Anybody know any tricks to get Fox to see files stored in system/hidden directories with file related commands (i.e. FILE(), GETFILE(), COPY FILE)? I am working on a little utility that parses an html file which is being stored by I.E. in a system folder 'temp internet files\content.ie5'. None of the VFP commands will see the file because the directory is marked as system directory and I can't seem to change it. I can copy the file out to another directory using Explorer and then work with it in VFP, but I'd like to be able to do this in code.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform