start "" wscript "%temp%\done.vbs"
Batch executing a file and continuing to run
-
19-10-2022 - |
Question
I have this code:
@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
The code creates a message box. The problem with the code is that it pauses when the message box is open so it pauses the script. how do I make it continue to run the code even when the message box is open. Thanks for any help.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow