if dir exist

Paul Salyers ps1 at softseven.org
Thu Dec 23 15:57:28 EST 2004




I'm trying to get out on VB thinking and into Rev

I searched under exist and fount nothing. Can some1 help with this code?

It checks to see if c:\winnt\ exist if so then it works from that director, 
else it works from the c:\windows\ directory

This is one of the headaches that programmers can thank Billy Boy for.

Maybe there is a better way in Rev, if so I don't know about it. *

Dire = Dir("c:\winnt\", vbDirectory)
If Dire <> "" Then
Dire = "c:\winnt\"
Else
Dire = "c:\Windows\"
End If


Paul Salyers
PS1 - Senior Rep.
PS1 at softseven.org 



More information about the use-livecode mailing list