Search found 2 matches

by christsreturn
16 Aug 2012 07:37
Forum: DOS Batch Forum
Topic: What is wrong with my script???
Replies: 2
Views: 2903

Re: What is wrong with my script???

You have 2 places in your code where you have ) character that is not escaped and not quoted, so it is ending your code block prematurely.

You just need to escape the ) characters.



Thanks a lot! That solved my problem :D
by christsreturn
15 Aug 2012 13:20
Forum: DOS Batch Forum
Topic: What is wrong with my script???
Replies: 2
Views: 2903

What is wrong with my script???

REM Changes the permission of specified file to specified Access for specified group and logs the output. echo ------------ >> %Output% echo ***Change*** >> %Output% echo ------------ >> %Output% for /f "delims=" %%y in (%Input%) do ( echo icacls %%y /grant:r %Group%:(%Permission%) >> %Ou...