开发者

Deleting a read only file using batch file or command

开发者 https://www.devze.com 2022-12-08 17:12 出处:网络
I would like to know a way of deleting a read only file using a batch file or a command. Suppose I have a DLL file named \"abc.dll\", and I am trying to delete this file using the following command i

I would like to know a way of deleting a read only file using a batch file or a command.

Suppose I have a DLL file named "abc.dll", and I am trying to delete this file using the following command in a batch file:

开发者_StackOverflow中文版del "C:\test\abcd.dll"

It does not allow me to do that and it throws access denied message. However if I change the read only attribute to non read only I am able to successfully delete it.


Specify /F, it will force deletion of read-only files. Also see

del /?

However, that will not work when the file is in use.


del /f will delete readonly files.

0

精彩评论

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