RabbieBurns Posted February 8, 2012 Posted February 8, 2012 It says No Similar Threads Found, but last year Im sure I posted this exact same question, and was provided with a batch file to run against a text file of usernames/foldernames. I cannot for the life of me find either the batch file nor the previous thread. We ban .exe files in the students folders, but some of the programming students need access. If anyone can point me in the direction of the old thread, or provide me with the command I might have used in the batch file, would be much appreciated. Many Thanks and sorry for the repost ;/
RabbieBurns Posted March 27, 2012 Author Posted March 27, 2012 I still cant find the original thread.. anyone able to help?
RabbieBurns Posted March 28, 2012 Author Posted March 28, 2012 Boom Boom ====AddExecutable.cmd============== @echo off SET yearFolder=E:\Student\Users\%2 FOR /F "tokens=1" %%i IN (%1) DO ( filescrn exception add /path:%yearFolder%\%%i /add-filegroup:"Executable Files" /add-filegroup:"System Files" IF ERRORLEVEL 1 filescrn exception add /path:%yearFolder%\%%i /add-filegroup:"Executable Files" /add-filegroup:"System Files" /Overwrite ) ==================== called as "AddExecutable.cmd userlist.txt 2012" Wasnt actually on here i saw it thats why I couldnt find it again. Cheers to the original source.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now