>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)