Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directory Array
Message
 
 
To
08/02/2002 15:29:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00617632
Message ID:
00617735
Views:
18
Hi Steven,

You might hit this really strange problem. As a resolution, try to use
oFSO = createobject('Scripting.FileSystemObject')
toFolder = oFSO.GetFolder(pcStartDir)
with toFolder
	for each oFile in .files
		with oFile
			if empty(pcFileExt) or justext(.path)==pcFileExt
				insert into filesFSO ;
					values (.path, .size, .DateLastModified )
				pnTotNumberOfFiles=pnTotNumberOfFiles+1
			endif
		endwith
	endfor
endwith
>Michelle,
>
>I will try to explain a little better my delima. I have a directory with about 1700 drawings in it. I use ADir() with cFileSkeleton '842239*.*' This returns me two files. The first is the 842239ea001.cdd. The second file returned is the 849567ea008.cdd. When the directory is physically viewed there is only one file that should be returned. Now if I check the properties of the 849567 file I find that it's MS-Dos name happens to be 842239. How it got this name is a mystery but most of the files we have discovered are like this. Anyway this tells me that the ADir() function polls for the MS-Dos file name and returns the displayed file name. Do you or anyone else know how to poll for the displayed file name?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform