By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,164 Members | 969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,164 IT Pros & Developers. It's quick & easy.

Delete file

P: n/a
How can I test to see if a given file exists in my app directory and
delete it if it does? Also can I rename a file?
Nov 12 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
In article <MP************************@netnews.comcast.net> ,
me@myprovider.com says...
How can I test to see if a given file exists in my app directory and
delete it if it does? Also can I rename a file?

Never mind again. It has been a long week combined with the fact that I
shoudl be hospitaklized for as sick as I am right now. Thanks for
tolerating my stupidity.

Name "old" as "new"
Kill "bad"
Nov 12 '05 #2

P: n/a

Is there a way to test for the existance of a file? I cannot find it in
help. I am writing a from that will create a new table. If that table
exists already I want the form to bring it up if not I want the form to
be blank so the user can create a new one.

Thanks,
Joe
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3

P: n/a
do you want to test for a file or a table???

try the msysobjects table to find out if a table exists.

Otherwise, you can always look under "name", "kill" in help to find a
function that shows the existince of a file.

Let me know how you go
---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.683 / Virus Database: 445 - Release Date: 12/05/2004
Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.