Software >> OS >> Windows >> Command Line >>  How to automate answer to prompts

eg. to press Y when prompted after a certain command echo Y|<command> eg. echo Y|cacls dir /P administrator:F