-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlivestreamer.cmd
37 lines (25 loc) · 882 Bytes
/
livestreamer.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
echo Livestreamer
echo.
setlocal enabledelayedexpansion
set num=0
for %%e in (".\streams\*.bat") do (
set /a num += 1
set opt!num!=%%~ne
echo !num! %%~ne
)
echo.
set /p choice="Enter Choice: "
set newchoice=opt%choice%
:: Launch with normal command prompt window
:: start "" ".\streams\!%newchoice%!"
:: Launch with minimized command prompt window
:: cmd /c start /min !%newchoice%!
:: Launch with invisible command prompt window (not suitable for scripts that require user input)
:: http://www.howtogeek.com/131597/can-i-run-a-windows-batch-file-without-a-visible-command-prompt/
wscript.exe ".\launch-invisible.vbs" ".\streams\!%newchoice%!"
:: Launch with invisible command prompt window (not suitable for scripts that require user input)
:: http://www.taenarum.com/software/#silentbatch
:: start silentbatch.exe !%newchoice%!.bat
endlocal
exit