hi to all
I have a dos command that can backup system state in winserver2008,it write it in cmd when i run it and say y to its question
but I want to have this command in bat file for a scheduled task that runs daily,I create this task and bat file but it doesn't work!!
I guess because of "y" to it's question but I can't solve this problem!!!

Please help me

I solve my problem myself
if add -quiet to the end of the command it dosen't wait for say yes
then we can create scheduled task with this batch file