how to deny any kind of file opening in a specific folder( like test) in windows server 8.
Either its a word, excel, autocad , text or any kind of file, should not get open in that particular folder and its subfolders. but users should able to copy and paste the file & folders in test folder.
Actually I do not want to open the file in test folder. User can see the content of the folder but he should not open any file of that particular folder. sub folders should open in test folder but file opening have to be denied.
i am trying to do this by Powershell script but some errors are generating.
1st option :- Get-COMMAND “select-object ‘D:\test*.*’-open -deny”
2nd option:- when “D:\test*.’ open then Get-COMMAND "select-object 'D:\test.* ’ -open -deny”

my requirement is to disable open option ( marked in circle ) in test folder , so any user can not open the file in test folder, but user can open sub folders inside the test folder.