01-01-2006 10:13 PM
01-03-2006 04:30 AM
Hi Jacky, I can think of a couple of methods to do what you want.
1. Detailed file attributes can be obtained via Windows GetFileAttributesEx function. You can look in MSDN site for the function reference. Strange enough, it cannot be found in SDK help in CVI7, but is regularly found in SDK shipped with CVI6
2. Listing files can be obtained in at least two ways:
2a. Using GetFirstFile and GetNextFile functions to obtain file names one by one, or
2b. Using DOS Dir command redirecting output to a file. For example, "dir /b c:\windows\system\*.dll /o:d > output.txt" produces a file that lists all dlls in windows\system directory without heading and sorted by time. Dir command has a couple of options that can be customized for your needs, just type "help dir" at a command prompt to list all available options. You'll need to read back the output file for obtaining the results of the command
Hope this helps
Roberto