VBScript cannot delete folder "Permission Denied Error"

1.5k Views Asked by At

I am using VBscript to delete folder recursively. The folders present are SERVIGISTICS\EDSSolo5.8\"Several more folders and batch files"....

I am using

If oFSO.FolderExists("C:\Program Files\SERVIGISTICS")then
   oFSO.DeleteFolder "C:\Program Files\SERVIGISTICS", True
End if

The oFSO.DeleteFolder pops out runtime error "Permission Denied" I am running the script in System Context which has full permissions to that directory. Administrator is the owner of the folder

0

There are 0 best solutions below