Forum Discussion

Mrunal's avatar
Mrunal
Contributor
9 years ago

Set folder permissions to read only to all users without using batch file

Hi,

 

I want to set folder permission to read only access to all users using TestComplete. I am writing some code in JScript but its not working and I am still able to copy files/install exe to that folder.

 

My code:

 

function test()
{

aqFileSystem.ChangeAttributes("C:\\WorkingFolder", aqFileSystem.faReadOnly, aqFileSystem.fattrSet);

}

 

I want to accomplish this without using batch file. Anyone having solution to this?

No RepliesBe the first to reply