'How do i correctly use goto with start in batch
i just tried to write batch program, that launches my 3 most used apps. but somehow it doesn't start anything. can someone please help me find the error?
Code:
@echo off & setlocal
echo WScript.Echo MsgBox("Start everything?!?",4)>%temp%\samrtstart.vbs
for /f "delims=" %%i in ('cscript //nologo %temp%\samrtstart.vbs') do set "Answer=%%i"
del %temp%\isamrtstart.vbs
if "%Answer%"=="6" goto :yes
if "%Answer%"=="7" goto :no
::yes
start "" "Program 1"
start "" "Program 2"
start "" "Program 3"
obviously Program 1-3 are placeholders for my real paths
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
