How can I make an “are you sure” prompt in a Windows batchfile?

前端 未结 11 1217
时光说笑
时光说笑 2020-12-07 19:43

I have a batch file that automates copying a bunch of files from one place to the other and back for me. Only thing is as much as it helps me I keep accidentally selecting t

11条回答
  •  一向
    一向 (楼主)
    2020-12-07 20:06

    try the CHOICE command, e.g.

    CHOICE /C YNC /M "Press Y for Yes, N for No or C for Cancel."
    

提交回复
热议问题