Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List content of a folder
Message
From
01/05/2004 14:37:17
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00900047
Message ID:
00900078
Views:
27
This message has been marked as the solution to the initial question of the thread.
Moises,

Sorry, I wrote INTO instead of TO:
LIST FILES LIKE c:\jvc\*.* TO FILE list.txt
or if you want a stuctured list:
nFiles=ADIR(aFiles,'c:\jvc\*.*')
SET ALTE TO list.txt
SET ALTE ON
IF nFILES>0
   FOR X=1 TO nFILES
      ?aFILES(X,1)
   ENDFOR
ENDIF
SET ALTE OFF
SET ALTE TO
>LIST FILES LIKE yourpath\yourfile.yourext INTO FILE yourfile
>
>The line below does not work
>
>Please anybody give and example
>
>The files are in the path:
>c:/jvc/
>
>I need to put the list into:
>
>list.txt
>
>Regards
>
>Moses
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform