Jump to content

A struggle with a read-only file


Recommended Posts

each time i try to replace a file in a resource pack for minecraft i get this error code thing , i try to "save as" but it doesnt work either.

 

System.UnauthorizedAccessException: Target path has the read only flag set
 
   at PaintDotNet.IO.SaveTransaction..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options) in d:\src\pdn\paintdotnet\src\PaintDotNet\IO\SaveTransaction.cs:line 265
 
   at PaintDotNet.Controls.DocumentWorkspace.DoSave(Boolean tryToFlatten) in d:\src\pdn\paintdotnet\src\PaintDotNet\Controls\DocumentWorkspace.cs:line 2908
 
Link to comment
Share on other sites

The file you're trying to save to already exists and is marked 'read only'.

Try saving your file to the desktop first so you don't lose your work. Then, you need to right click on the target file and change the properties to remove the 'read only' attribute.

Click to play:
j.pngs.pngd.pnga.pngp.png
Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...