WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: pamsniffer on March 19, 2016, 02:07:11 PM

Title: deny loading an executable file in an specified directory
Post by: pamsniffer on March 19, 2016, 02:07:11 PM
Hi,

Is there a way to deny or prevent  loading an executable file  in an specified directory with winbatch, also when someone has al the rights there.

pm
Title: Re: deny loading an executable file in an specified directory
Post by: td on March 21, 2016, 06:46:00 AM
There are multiple ways.  Some of which you will likely not be able to perform in a WIL script.  One simple and maybe not very practical approach is to open the file without any shared access.  Or you could just change the files NTFS permissions.