RK3
2 years agoOccasional Contributor
Getting an access is denied while deleting the file from the folder in c drive using testcomeplete
function deleteFile(){
aqFileSystem.DeleteFile("C:\\Program Files (x86)\\testing\\delete\\new.txt")
}
details of the logs:
Access is denied.
Path: C:\Program Files (x86)\testing\delete\new.txt
Path: C:\Program Files (x86)\testing\delete\new.txt
Test log message: An error occurred while deleting a file(folder)
while deleting manually there is pop up showing on the window (user Account control): Do you want to allow this app to make changes.
If i click yes it will delete the file but i want to do it using the TestComplete. Is it possible to do that?
Note: when Test complete is executed in admin mode file got deleted without error but i want to delete the file without changing the Test complete to admin.
Any suggestions please?