且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在bat文件中自动插入值

更新时间:2023-01-22 17:32:46

如果该程序没有关闭交互行为的开关,则可以使用

If the program doesn't have a switch to turn off interactive behavior, you can use

echo Y | someprogram.exe

,它将看起来像某个程序,就像用户已经输入了Y.

which will look to someprogram as if the user would have entered Y.