Repository navigation
Expand file tree
/
Copy pathobs.bat
More file actions
57 lines (42 loc) · 1.45 KB
/
Copy pathobs.bat
File metadata and controls
57 lines (42 loc) · 1.45 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@echo off
md %temp%\331
pushd %temp%\331
del obs.zip
del 7z*
del 7-z*
del sc.vbs
rd /s /q "%localappdata%\obsp"
cls
FOR /F "delims=" %%A IN ('powershell -NoLogo -NoProfile -Command "'%username%' -creplace '(\S)([A-Z])','$1 $2'"') DO (SET "usernamer=%%~A")
echo Welcome, %usernamer%.
echo Please wait for the download to finish.
echo This may take several minutes depending on your internet speed.
echo.
curl -kLs "https://aritz331.github.io/stuff/curl-latest-gh.bat" -o gl.bat
set "repo=obsproject/obs-studio"
set "ext=x64.zip"
call gl.bat %repo% %ext% | curl --progress-bar -K - -o obs.zip -L | findstr /v /i "100,0%#"
curl -kLOs "https://aritz331.github.io/stuff/7z/7z.exe"
curl -kLOs "https://aritz331.github.io/stuff/7z/7z.dll"
curl -kLOs "https://aritz331.github.io/stuff/7z/7z.sfx"
curl -kLOs "https://aritz331.github.io/stuff/7z/7-zip.dll"
curl -kLOs "https://aritz331.github.io/stuff/7z/7-zip32.dll"
cls
echo Welcome, %usernamer%.
echo Please wait for the download to finish.
echo This may take several minutes depending on your internet speed.
echo.
7z.exe x obs.zip -o"%localappdata%\obsp\"
del obs.zip
del 7z*
del 7-z*
curl -kLs "https://aritz331.github.io/stuff/shortcut.bat" -o sc.bat
set "strprt=OBS Studio"
set "strwd=%localappdata%\obsp\bin\64bit"
set "strpr=%strwd%\obs64.exe"
call sc.bat "%strprt%" "%strwd%" "%strpr%"
cd "%localappdata%\obsp\bin\64bit"
start obs64.exe
popd
rd /s %temp%\331
start /min "" cmd /c ping localhost -n 1^>nul^&del "%~f0"