Its been ages, so simple ive forgotten
Posted on 2004-12-01
Hey experts - not exactly a hard one but its been so long i cant remember how to do this.
If a directory, for example C:\Program Files\Directory, does not exist then make it, and if it does exist then delete it and make it again.
So - Dir exist? Yes - Delete and remake
No - Make
I know its something to do with mkdir, rmdir but i cant remember how to see if it exists or not. ive been playing around with
If ("C:\Program Files\Directory") = "" Then ..... but to no avail.
Thanks Experts, not very challanging i know but its still points :-)