Hi,
I've been getting different results using the ADIR() function with WinNT and Win98 operating systems. Here's the code I'm using:
cDir = alltr(getdir('c:', 'Select Directory for Process'))
nDirs = adir(aDirs, cDir+ '??????', 'D')
The nDirs variable should equal the number of subdirectories within the selected directory which have a length of 6 or less
The aDirs array should be populated with all subdirectory names within the selected directory which have a length of 6 or less and their relative directory information
The value that is being returned for nDirs is completely different on WinNT than it is on Win98. On WinNT all subdirectories within the selected directory with a length <= 6 are returned. On Win98 only the subdirectories within the selected directory that have an exact length = 6 are returned, so I don't get any of the smaller directory names. I’m assuming this has to do with the way the OS is handling the DIR function at the command prompt. Does anyone know if that assumption is correct and if it isn’t what could be causing this problem or if there is something I can do to account for it?
Thanks for the help.
I've been getting different results using the ADIR() function with WinNT and Win98 operating systems. Here's the code I'm using:
cDir = alltr(getdir('c:', 'Select Directory for Process'))
nDirs = adir(aDirs, cDir+ '??????', 'D')
The nDirs variable should equal the number of subdirectories within the selected directory which have a length of 6 or less
The aDirs array should be populated with all subdirectory names within the selected directory which have a length of 6 or less and their relative directory information
The value that is being returned for nDirs is completely different on WinNT than it is on Win98. On WinNT all subdirectories within the selected directory with a length <= 6 are returned. On Win98 only the subdirectories within the selected directory that have an exact length = 6 are returned, so I don't get any of the smaller directory names. I’m assuming this has to do with the way the OS is handling the DIR function at the command prompt. Does anyone know if that assumption is correct and if it isn’t what could be causing this problem or if there is something I can do to account for it?
Thanks for the help.