开发者

Permission denied when try to write-open a c code file in perl script

I got an error of Permission denied when try to write-open a c code file in perl script. but if I try to read-open the c code file, it works. I check my permission with right clicking the c file and then properties-security, see that I have both read and write permission. What`s more strange is that if I open the c file in notepad, I can read and write to it, but when I use notepad++, it does not work, it just can read, not write.

Thanks in advance. help~~

Err.. you are right, it´s read only, seems that it´s a stupid question...anyway, thank you 开发者_Go百科for all your help, nice day!


It sounds like the file may be locked by a process. You can use Sysinternals Process Explorer to determine which process, if any, is locking the file.

Choose Find -> Find Handle or DLL... and search for the file name.


Did you check the file attributes? When you right-click on the c file, look at the bottom of the 'General' tab, is "Attributes: Read-only" checked? This will override your DACL security.

Read-only might be checked if you copied the file from a CD-ROM or DVD.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜