How to Add Security or change the owner of files inside the CD-R using C#? is this possible.
I use this code from msdn.
It works ok, but when I change the path/file from D:\folders\myfiles.txt which is the CD-R.
it says unauthorized to perform action.
CD-R means CD Write-Once disk. You cannot modify any data in the disk once it was written. If you want to set the file security, you need to modify the file metadata, stored with the file on the disk. Therefore, it will raise this error.