How to delete Read only file?

G

Guest

Hi,
I would like to programatically delete a file that has been downloaded as
read only. Obviously when you try and delete it 'normally' with
File.Delete(filename) it throws an exception (as you would expect). My
immediate thought is that I should change the attributes associated with the
file to RW before attempting the delete BUT I cannot find how to do this in
code with win CE. Any/all clues/solutions greatfully recieved.
Platform is IPAQ pocketPC. application mainly in VB.Net.
thanks for your time
regards
Bill
p.s. this was originally incorrectly posted in embedded VB forum and has
been moved here.
 

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

Similar Threads


Top