>>>>Just curious, is there a way to get a file size without using ADIR()?
>>>>John
>>>
>>>Sure. The Size property of the Windows Script Host's Scripting.FileSystemObject.
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>>>oFile = oFSO.GetFile(lcfile)
>>>? oFile.Size
Natively, there's also FSIZE(), but you have to SET COMPATIBLE to ON (by default, it's off).
>>
>>george -
>>
>>i assume you need to have WSH installed on the machine to to this ?
>
>Yes, but it's becoming more and more likely that this is the case (as Win2K and Win Me boxes increase). It's fairly easy to check if it is. Just use the registry class in the FFC to check for the entry of VBScript.RegExp. That'll tell you if one of the more recent versions is installed.
>
>I made it a habit to check for the presence of it using a post-setup executable in VFP 6.0 and installing it if it wasn't present.
i've only researched WSH enough to find out what it can do and how to use it.
it seems there is a lot of overlap in functionality between WSH and the
Windows API. i've seen in several of your posts, recommendations to use
WSH host for various things. is that just a personal preference (compared
to API) or are more things available or just plain easier (in your opinion)
to do system things using WSH ?
patrick