Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find out all the Word Doc / Excel Worksheet with psw pro
Message
De
03/12/1999 05:04:03
 
 
À
03/12/1999 04:49:21
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00298323
Message ID:
00298326
Vues:
24
>My boss give a problem to solve. It is to find out all the Word and Excel files from the entire harddisk which have password protected.
>So I want to code a program to scan the entire hard disk or code to program to open all the word/excel files.
>Is it possible to code in VFP or Is there any existing scan engine can do that. Would anybody can help me to solve this problem ?

You'll need to recursively search the drive for files matching the extensions of interest, either using ADIR or the Scripting.FileSystemObject to wander through the tree, and once you have the possible files, use the appropriate automation server (Word.Application or Excel.Application in this case) to try to open each file in the list of matching files.

There was a thread a couple of weeks back, take at look at my message Re: Get a collection of sub folders from a parent folder Thread #288982 Message #289075; George Tasker posted code earlier in the threadshowing the ADIR() approach.
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