Link to home
Start Free TrialLog in
Avatar of martgriff
martgriff

asked on

VB.Net Delete File

I have a VB.Net Program which when i click a button it Deletes a file:

Kill("c:\Pilot\Pilot_2007.adp")

How can I get it to only delete the file if it exists because if the file is not there my app goes in to error?
SOLUTION
Avatar of Jonez176
Jonez176
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Joel Coehoorn
Joel Coehoorn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of martgriff
martgriff

ASKER

Thank you for you help Guys..........