forked from nalulululuna/NalulunaModifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateJunctions.bat
47 lines (44 loc) · 1.5 KB
/
CreateJunctions.bat
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
@echo off
set SourcePath=%~1
set DestPath=%~dp0
if "%SourcePath%" == "" (
echo Enter the full path (without quotes^) to your Beat Saber game folder. Alternatively, you can drag and drop your Beat Saber folder onto this batch file to automatically make the junctions.
set /p SourcePath="Path:"
)
echo Source target: %SourcePath%
echo Link target: %DestPath%
set PluginPath=%SourcePath%\Plugins
set ManagedPath=%SourcePath%\Beat Saber_Data\Managed
set LibsPath=%SourcePath%\Libs
set IPAPath=%SourcePath%\IPA
if exist "%PluginPath%" (
echo Plugin folder exists, creating link
if not exist "%DestPath%References" mkdir "%DestPath%References"
mklink /J "%DestPath%References\Plugins" "%PluginPath%"
) else (
echo Plugin folder missing
)
if exist "%ManagedPath%" (
echo Managed folder exists, creating link
if not exist "%DestPath%References" mkdir "%DestPath%References"
if not exist "%DestPath%References\Beat Saber_Data" mkdir "%DestPath%References\Beat Saber_Data"
mklink /J "%DestPath%References\Beat Saber_Data\Managed" "%ManagedPath%"
) else (
echo Managed folder missing
)
if exist "%LibsPath%" (
echo Libs folder exists, creating link
if not exist "%DestPath%References" mkdir "%DestPath%References"
mklink /J "%DestPath%References\Libs" "%LibsPath%"
) else (
echo Libs folder missing
)
if exist "%IPAPath%" (
echo Libs folder exists, creating link
if not exist "%DestPath%References" mkdir "%DestPath%References"
mklink /J "%DestPath%References\IPA" "%IPAPath%"
) else (
echo Libs folder missing
)
:End
pause