我想与patameters运行命令行,使其等待连接,然后做“gpupdate/force”,然后nofity用户的工作完成。我坚持的事情是让它等待连接。命令行参数,而
cmd /c echo Connect a network cable. & *something* & echo n | gpupdate /force & msg * Done.
如果东西是下面的代码,然后它会工作:
:top
ping -n 1 site.com >nul
if errorlevel 1 (
goto top
)
,但我不知道我怎么会写在1线作为参数。
我该如何按我希望的方式工作?替代解决方案也是受欢迎的!
这正是我所期待的。谢谢。 – LukAss741