RE: DOES FOLDER/DIRECTORY EXIST

Author: Jack Skelley

Posted: 2011-03-01 at 11:35:08

Jerry:

How about something like:

if not directory(gcCurrent_dir + "\Spreadsheets") then

mkdir(gcCurrent_dir + "\Spreadsheets")

endif

Regards,

Jack Skelley

________________________________________

From: profoxtech-bounces@leafe.com [profoxtech-bounces@leafe.com] On Behalf Of Jerry Foote [jerryfoote@bellsouth.net]

Sent: Tuesday, March 01, 2011 11:33 AM

To: profoxtech@leafe.com

Subject: DOES FOLDER/DIRECTORY EXIST

What is easiest way to determine weather a folder/directory exist with vfp?

I know I can make a new directory with a try/catch but curious to know other

way to check

Jerry

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/0B957900B2B8194D998A441195B660383A312CC8F9@DRDSRV03.drdad.thenewarkarena.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Jack Skelley