Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20755

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

$
0
0

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?


Viewing all articles
Browse latest Browse all 20755

Trending Articles