我正在创建一个打开exe的代码并且它会写一个文本,但我只是希望它在exe关闭后编写文本 我试过这个:
start /wait WindowsFormsApp12.exe
start C:\Users\HP8200\Desktop\teste.vbs
它可以工作,但它显示cmd。 我不希望它显示cmd。
这是在vbs上写的:
Set wshshell = wscript.CreateObject("wscript.shell")
WshShell.SendKeys "{d}"
WshShell.SendKeys "{o}"
WshShell.SendKeys "{c}"
WshShell.SendKeys "{u}"
WshShell.SendKeys "{m}"
WshShell.SendKeys "{e}"
WshShell.SendKeys "{n}"
WshShell.SendKeys "{t}"
WshShell.SendKeys "{o}"
WshShell.SendKeys "{-}"
WshShell.SendKeys "{e}"
WshShell.SendKeys "{n}"
WshShell.SendKeys "{t}"
WshShell.SendKeys "{enter}"
WshShell.SendKeys "{enter}"
WshShell.SendKeys "{r}"
WshShell.SendKeys "{e}"
WshShell.SendKeys "{p}"
WshShell.SendKeys "{o}"
WshShell.SendKeys "{e}"
WshShell.SendKeys "{t}"
WshShell.SendKeys "{e}"
WshShell.SendKeys "{m}"
WshShell.SendKeys "{enter}"