PC Review


Reply
Thread Tools Rate Thread

Delete a read-only file

 
 
schaf
Guest
Posts: n/a
 
      20th Jul 2006
Hi !
I have a simple question. I have to delete a read-only file within my
application. I do it by removing the read-only flag before I delete the
file.
Is it possible to do in a easier way ?
Thanks
Schaf

 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      20th Jul 2006
Schaf,

No, there isn't. That's what the read-only flag is there for, to make
sure that it isn't modified.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"schaf" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi !
> I have a simple question. I have to delete a read-only file within my
> application. I do it by removing the read-only flag before I delete the
> file.
> Is it possible to do in a easier way ?
> Thanks
> Schaf
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When trying to delete a font "Cannot move file: Cannot read from source file or disk. ldliebhart Windows XP Help 4 13th Sep 2009 10:45 PM
Cannot delete file: Cannot read from the source file or disk. Jack Carroll Windows XP General 2 6th Jan 2004 08:15 AM
Cannot Delete File. Cannot read fro the source file or Disk David Windows XP General 1 21st Aug 2003 04:56 AM
message - cannot delete file: cannot read the source file or disk EugeneN Microsoft Windows 2000 File System 1 10th Jul 2003 01:14 PM
error message -- cannot delete file: cannot read the source file or disk. EugeneN Microsoft Windows 2000 File System 0 10th Jul 2003 11:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:16 AM.