如何通过批处理文件自动回答是?

时间:2014-02-27 05:19:50

标签: batch-file

我的代码如下:

@echo off

start /d "C:\Users\tawfik\Desktop\ZC90 - Copy" zc90.xls

start /d "C:\Users\tawfik\Desktop\ZC90 - Copy" zc90p.xls

start /d "C:\Users\tawfik\Desktop\ZC90 - Copy" zl10.xls

@echo off

当excel文件打开时,它会显示一条带有yes,no或cancel选项的消息,我希望代码自动回答每个文件的“是”。

1 个答案:

答案 0 :(得分:0)

@echo off
explorer "C:\Users\tawfik\Desktop\ZC90 - Copy\zc90.xls"
explorer "C:\Users\tawfik\Desktop\ZC90 - Copy\zc90p.xls"
explorer "C:\Users\tawfik\Desktop\ZC90 - Copy\zl10.xls"