how to confirm a command ??

  • Thread starter Thread starter Marcelo López
  • Start date Start date
M

Marcelo López

I also need to confirm commands. It means that i have a bat that i need to
execute.
The bat performs a cacls command which requires confirmation. How can i say
"yes" in my but to confirm automatically the command ???

Regards

Marcelo López
Infocorp
Latin America
 
Hi there

If you need to send "yes", place "echo yes|" in front of the command. The
spacing is important.

For instance, to send a "y" to cacls.exe to force it to run, use the
following:

echo y|cacls.exe /t /g administrators:F users:R

Hope this helps

Oli
 
Oli Restorick said:
Hi there

If you need to send "yes", place "echo yes|" in front of the command. The
spacing is important.

As is the fact that the double quotes should not be there.

/Al
 
Back
Top