-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart.bat
More file actions
42 lines (38 loc) · 1.08 KB
/
Copy pathstart.bat
File metadata and controls
42 lines (38 loc) · 1.08 KB
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
38
39
40
41
42
@Mode con: cols=100 lines=30
@powershell -command "&{$H=get-host;$W=$H.ui.rawui;$B=$W.buffersize;$B.width=100;$B.height=9000;$W.buffersize=$B;}"
@echo off
cd /d %~dp0
IF EXIST %~dp0\nodejs\node.exe (
SET "PATH=%PATH%;%~dp0nodejs"
) else echo NODEJS NOT FOUND ^!^!^!
if NOT exist node_modules call :missing
title [Synth] Checking for updates...
node index.js --update
:A
cls
title [Synth] Config manager
if exist .\*.pl (
echo What config do you want to use? You currently have these:
for %%f in (.\*.pl) do (
echo %%~nf
)
echo.
echo You can also create a new one by typing a new unique name.
set /p "name=> "
) else (
echo Seems like you don't have any configs set up yet.
echo Pick a name for your config.
set /p "name=> "
)
title [Synth] Spotify to YouTube playlist helper (by Pawele)
node index.js %name%
echo.
echo.
choice /C yn /M "Process finished. Do you want to run again for a different config?"
if "%errorlevel%"=="1" goto :A
exit
:missing
title Please wait a moment...
echo node_modules folder not found, generating new one.
call npm install
goto :EOF