Delete a file from a mapped drive using a Windows.Form application

D

Dave

Hello all,

I have an application that is accessing files from a mapped drive. I
have full access to the share that is mapped and from explorer can
delete files as I need. My application needs to be able to delete files
once the are processed, but using File.Delete does not seem to be
deleting them. What is the correct way of deleting files from a network
drive in Windows.Form application?


Regards,
David
 
S

Steven Nagy

File.Delete should work.
So you should probably post the exception you are getting, and the line
of code it is occuring on.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top