> Gentlemen,
>
> i'm using a command that is supposed to check if a folder exists, if not, it should create it.
> the problem is that my command is always trying to create that folder, so i'm getting an error saying : this folder already exists.
>
> can someone show me please what is wrong with my command ?
>
> vpath='c:\mynewfolder'
>
> IF NOT DIRECTORY("vpath")
> MD ("&vpath")
> ELSE
> ?'ALREADY EXISTS'
> ENDIF
vpath = "c:\mynewfolder"
IF NOT DIRECTORY(m.vpath)
MD (vpath)
ELSE
? "ALREADY EXISTS"
ENDIF
-----------------
Borislav Borissov
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von SchillerThe only thing normal about database guys is their tables.