Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: mike castillo
  Where is mike castillo?
 Joo Seng Road, Singapore
 Philippines
 mike castillo
 To: Vladimir Zografski
  Where is Vladimir Zografski?
 Sofia
 Bulgaria
 Vladimir Zografski
 Tags
Subject: RE: directory() command
Thread ID: 209882 Message ID: 209927 # Views: 27 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Thursday, January 01, 2009 3:03:35 PM         
   


> >
> > IF DIRECTORY(lcBackupDir)
> > 

> >
> > Will always return false.
>
> Hi Biju,
> 1. Why DIRECTORY() Will always return false?
> If directory exists the return is .T.
>
>
> >
IF !DIRECTORY(lcBackupDir)
> > md (lcBackupDir)
> > endif 

>
> 2. Why you test, when you know that the Directory doesn't exists?
>
IF !DIRECTORY(lcBackupDir)

>
>
>
> Vladimir Zografski
> Systems Analyst

Vladimir you might not understand well the way Biju post his response, but his response is correct.

He means that if the directory does not exist, create the directory. That's what he means.

Kind regards,
Mike



COMPLETE THREAD
directory() command Posted by bryan wetton @ 1/1/2009 1:38:18 AM
RE: directory() command Posted by Biju Thomas @ 1/1/2009 3:39:16 AM
RE: directory() command Posted by Vladimir Zografski @ 1/1/2009 2:45:37 PM
RE: directory() command Posted by mike castillo @ 1/1/2009 3:03:35 PM
RE: directory() command Posted by Vladimir Zografski @ 1/1/2009 4:30:42 PM
RE: directory() command Posted by Biju Thomas @ 1/1/2009 4:24:09 PM
RE: directory() command Posted by Jyothish KV @ 1/1/2009 1:23:25 PM
RE: directory() command Posted by Andy Kramek @ 1/1/2009 1:27:50 PM
RE: directory() command Posted by Biju Thomas @ 1/1/2009 4:29:13 PM