Solved A litle problem with cacls command...

May 15, 2016 at 22:45:47
Specs: Windows 7
Hello

If some one, please, can help me...

I'm using the cacls command in order to provide some permitions to a folder.
Everything is ok, but when i apply this command, it asks for a confirmation answer
with the echo "are you shore ? Y or N"
I need to know if there is a parameter to buy pass this prompt.
I already try "@echo y | cacls"
It does the job, but the cacls command isn't applied and fail.
Is there any other way ?

Thank you very much.

message edited by Paulo66


See More: A litle problem with cacls command...

Report •

✔ Best Answer
May 16, 2016 at 07:40:30
You need to add the /E switch, since you're editing the ACLs.

How To Ask Questions The Smart Way



#1
May 15, 2016 at 22:59:29
Try removing the @.

Report •

#2
May 16, 2016 at 05:32:48
The at symbol suppresses echoing of the line, assuming echo is on, so it's superfluous but harmless.

As for Paulo66's problem, it'd help to see the error cacls throws, or the code in question.

How To Ask Questions The Smart Way


Report •

#3
May 16, 2016 at 06:51:49
Hi ijack

I already did and it returns the same result...

Thanks for the reply


Report •

Related Solutions

#4
May 16, 2016 at 07:00:06
Hi Razor2.3
The code is - cacls folder name /D %USERNAME%
It does't return any error mensage when it fails...

Thank's for your answer


Report •

#5
May 16, 2016 at 07:40:30
✔ Best Answer
You need to add the /E switch, since you're editing the ACLs.

How To Ask Questions The Smart Way


Report •

Ask Question