我想运行AutoIt应用程序,在编辑框中更改数字,然后基于此数字运行BAT文件。
例如,我想更改今天的日期为一个或任何其他日期。基于,当我从AutoIt应用程序运行BAT文件时,BAT文件将使用该日期。
实际上有可能吗???
这是bat文件变量:
set newDay=22
set newMonth=11
set newYear=2016
这是AutoIt的一部分:
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $xxx
Run("n:\xxx\xxx\xxx.bat")
EndSelect
WEnd
要通过自动代码传递:
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $xxx
Run("n:\xxx\xxx\xxx.bat" & " " & $newDay & " " & $newMonth & " " & $newYear)
EndSelect
WEnd
并由批处理文件接收:
set newDay=%1
set newMonth=%2
set newYear=%3
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句