Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List content of a folder
Message
From
01/05/2004 12:49:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00900047
Message ID:
00900048
Views:
17
>How can I list the content of a folder of windows
>so it can be inserted into a doc of txt file ?

You can get the list to an array, with adir(), and then process that with a loop.

You can also create the text file directly with a DOS command, for example:
dir c:\*.* /B > filelist.txt
This example will get only the filenames.

Type:
dir /?
in a command window to get additional options.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform