Directory, Display Files, List Files
Three nearly synonymous commands to list files meeting specified file skeletons, similar to the DOS DIR equivalent, but with Visual FoxPro-specific extensions.
Usage |
DIRECTORY | DISPLAY FILES | LIST FILES [ ON cDriveLtr ] [ [ LIKE ] [ cPath ] [ cFileSkeleton ] ] [ TO PRINTER [ PROMPT ] | TO FILE cFileName [ ADDITIVE ] ] |
Unlike all the other DISPLAY/LIST commands, the FILES list lacks a NOCONSOLE option. In VFP 7, this bug is worse than ever because the Quick Info for the command shows a NOCONSOLE clause, but it doesn't work. Worse, if you omit the path and file skeleton, but include NOCONSOLE, the command looks for tables called NOCONSOLE. |
Example |
DISPLAY FILES ON C LIKE \VFP\SAMPLES\MAINSAMP\DATA && this is DIR C:\VFP\SAMPLES\MAINSAMP\DATA && the same as this |
See Also |