I prefer FolderItem.Exists. Given a parent and a file name, you can
do the following.
If parent.child(fileName) <> nil and parent.child(fileName).Exists then
...
Charles Yeomans
On Apr 25, 2006, at 6:03 PM, Robert Carroll wrote:
Hi,
Any comments on a preferred method to reliably check whether a file
already exists (in a given location) would be appreciated.
I am mostly using something like:
for i = 0 to parentfolder.index
if parentfolder.item(i).name= myfilename then
mybool = true
end if
next
return mybool
thanks
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>