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.
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.
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.
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.
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.
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.