Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Directory Access Errors with 'CD' or 'SET DEFAULT' comma
Message
 
À
26/01/1999 16:54:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00180446
Message ID:
00180502
Vues:
18
Whoops! Here's a cleaned up example:
*Function ShowFileList(folderspec)

lparameters lcFolderSpec

fso = CreateObject("Scripting.FileSystemObject")
folder = fso.GetFolder(lcFolderSpec)
fc = folder.Files

For Each f1 in fc
	? f1.name
Next
Just pass the function the path to the Recycle Bin (c:\recycled) or the Fonts Directory (c:\windows\fonts).

Sorry about that. You'll need the Windows Scripting Host. WSH is available for download for Windows 95, and is built into Windows 98 and NT. You'll find it along with more extensive information at Microsoft's Sripting Technologies site.

>> You can get to these directories quickly and easily using the >FileSystemObject provided with Windows Scripting:
>
>Thanks.
>
>One more question. I get a 'class not registered' error, and so I guess that I need to get this from somewhere. Would you know where I can get this from, will this be Win95/98/NT compatible, and would I have something to distribute to a client if I do so?
>
>Actually, 3 questions...
>
>Thanks again.
kenweber
GCom2 Solutions
Microsoft Certified Professional

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform