Whoops! Here's a cleaned up example:
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