Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directory Access Errors with 'CD' or 'SET DEFAULT' comma
Message
 
To
26/01/1999 16:54:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00180446
Message ID:
00180502
Views:
19
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

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform