batch file - Access denied when trying to delete a folder on Window VM -
this strange problem facing today. yesterday, logged windows vm , tried running simple batch script deletes exe if exists.
if exist "c:\temp\installer.exe" del installer.exe
it worked fine yesterday. today, came , logged in same user , tried executing batch script, says "access denied." tried of switches /f, /q of no use. , when tried deleting manually, required admin rights today. yesterday, delete same exe 100 of times using simple script. explain strange behavior , solution this.
thanks. kriti
i know solution works: take ownership
i don't know how happens might solve problem now!
Comments
Post a Comment