我有这段代码:
@echo off
Taskkill /f /im wscript.exe 2>> Log.txt
If exist "%Temp%\done.vbs" (
Attrib -R -S -H "%Temp%\done.vbs"
del /F /Q "%Temp%\done.vbs"
If exist "%Temp%\done.vbs" (
Echo Could not delete file "%Temp%\done.vbs"
Pause
)
)
> "%Temp%\done.vbs" ECHO x=msgbox("stage 1" ,6, "Chip-set")
"%Temp%\done.vbs"
DEL "%Temp%\done.vbs"
echo done
代码会创建一个消息框。代码的问题是它在消息框打开时暂停,因此它会暂停脚本。即使消息框打开,如何使其继续运行代码。谢谢你的帮助。
答案 0 :(得分:2)
start "" wscript "%temp%\done.vbs"