pipeline batch

With the pipeline in batch you can give an answer to a command in command line. Example: C:\>echo Y|del /p file.txt C:\file.txt, delete (Y/N) ? Y what is the point? you tell me. just to give an answer to a command in batch, and because, sometime batch...