B
broro183
hi all,
I have come across the below techniques for identifying if a file/folder
exists, both seem to work but is one technique "better" than the other?
if not dir(strfullpath,vbdirectory) = vbnullstring then doesfilefolderexist
= true
'or
if len(dir(sbasefolder, vbdirectory)) > 0 then doesfilefolderexist = true
TIA
Rob
__________________
Rob Brockett
NZ
Always learning & the best way to learn is to experience...
I have come across the below techniques for identifying if a file/folder
exists, both seem to work but is one technique "better" than the other?
if not dir(strfullpath,vbdirectory) = vbnullstring then doesfilefolderexist
= true
'or
if len(dir(sbasefolder, vbdirectory)) > 0 then doesfilefolderexist = true
TIA
Rob
__________________
Rob Brockett
NZ
Always learning & the best way to learn is to experience...