Index
2011-03-01 11:33Jerry Foote : DOES FOLDER/DIRECTORY EXIST
2011-03-01 11:35Jack Skelley : RE: DOES FOLDER/DIRECTORY EXIST
2011-03-01 11:41Michael Oke, II : Re: DOES FOLDER/DIRECTORY EXIST
2011-03-01 11:41Vincent Teachout : Re: DOES FOLDER/DIRECTORY EXIST
2011-03-01 12:18Grigore Dolghin : RE: DOES FOLDER/DIRECTORY EXIST
2011-03-01 12:20Jerry Foote : RE: DOES FOLDER/DIRECTORY EXIST
Back to top
DOES FOLDER/DIRECTORY EXIST

Author: Jerry Foote

Posted: 2011-03-01 11:33:35   Link

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

---

_______________________________________________

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/ED724F2EC7FF40D598EDBBC1F46EA9B6@jerryfootePC

** 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 Jerry Foote
Back to top
RE: DOES FOLDER/DIRECTORY EXIST

Author: Jack Skelley

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

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
Back to top
Re: DOES FOLDER/DIRECTORY EXIST

Author: Michael Oke, II

Posted: 2011-03-01 11:41:29   Link

Jack beat me to it but that is pretty much the code that I use in

several apps to do just what you are talking about.

::michael

----- Original Message -----

Subject: RE: DOES FOLDER/DIRECTORY EXIST

Date: Tue, 1 Mar 2011 11:35:08 -0500

To: profox@leafe.com <profox@leafe.com>

From: Jack Skelley <JSkelley@newjerseydevils.com>

> 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/4D6D21B9.9000805@gmail.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 Michael Oke, II
Back to top
Re: DOES FOLDER/DIRECTORY EXIST

Author: Vincent Teachout

Posted: 2011-03-01 11:41:57   Link

Jerry Foote wrote:

> 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

>

Can you use:

? DIRECTORY("c:\temp")

_______________________________________________

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/4D6D21D5.5080402@taconic.net

** 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 Vincent Teachout
Back to top
RE: DOES FOLDER/DIRECTORY EXIST

Author: Grigore Dolghin

Posted: 2011-03-01 12:18:58   Link

Strange. I received the answers first, then, 10 minutes later, the question.

> -----Original Message-----

> From: profoxtech-bounces@leafe.com [mailto:profoxtech-

> bounces@leafe.com] On Behalf Of Jerry Foote

> Sent: Tuesday, March 01, 2011 6:34 PM

> 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/000001cbd834$c121fc00$4365f400$@gmail.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 Grigore Dolghin
Back to top
RE: DOES FOLDER/DIRECTORY EXIST

Author: Jerry Foote

Posted: 2011-03-01 12:20:32   Link

Thanks guys

I never thought about using directory.

Thanks

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Jerry Foote

Sent: Tuesday, March 01, 2011 10:34 AM

To: 'ProFox Email List'

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/07010B3E1704473D9C252D967C21314E@jerryfootePC

** 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 Jerry Foote