i m using below code to delete the folder since it is used by other application i m getting 'Permission denied-Cannot delete a folder' error.
so i need a code to check if the folder is in use by other application,if so kill that process and then delete that folder.
strFolder = "C:\SP"
SET objFSO = CREATEOBJECT("Scripting.FileSystemObject")
objFSO.DeleteFolder strFolder
i m trying to delete the selenium project folder,since the chromedriver instances are not killed the permission deny is coming and
when i manually kill those instances i am able to delete that folder.