-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.bat
More file actions
76 lines (52 loc) · 2.1 KB
/
Copy pathsettings.bat
File metadata and controls
76 lines (52 loc) · 2.1 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@echo off
:: ============================================================================
:: Editable settings
:: ============================================================================
:: Path to the python.exe used execute the various scripts
set PYTHON=python
:: The label of the virtual SD card
set SD_CARD_LABEL=Label
:: The path to where the virtual SD card file should be created
set SD_CARD_PATH=sd.raw
:: The drive letter the card should be mounted to (for the default example, it would be "Q:\")
set SD_CARD_MOUNT_DRIVE_LETTER=Q
:: The size (in MiB) of the virtual SD card
set SD_CARD_SIZE=512
:: The file system of the virtual SD card
set SD_CARD_FILE_SYSTEM=FAT32
:: ============================================================================
:: Don't edit
:: ============================================================================
for %%A in ("%SD_CARD_PATH%") do (
set SD_CARD_PATH_BASE=%%~dpA
set SD_CARD_PATH_FILE=%%~nxA
)
set SHORTCUT_TO_DIRECTORY_FILENAME=%SD_CARD_PATH_FILE% Directory.lnk
set SHORTCUT_TO_DRIVE_FILENAME=%SD_CARD_PATH_FILE% Drive.lnk
:: ============================================================================
:: Additional code
:: ============================================================================
if "%1" NEQ "" call :%1
goto :eof
:: ============================================================================
:: No python error
:: ============================================================================
:error_no_python
echo The python.exe version check failed.
echo.
echo.
echo The most likely problem is that you do not have python installed,
echo or python is not in your path environment variable.
echo.
echo.
echo If you have python installed, either:
echo - Edit %BATCH_FILENAME%'s "PYTHON" setting at the top of the file;
echo change it to the full path of where python.exe is installed
echo or
echo - Add python to your path environment variable (google how to do this)
echo.
echo.
echo If you don't have python, install it from the following link:
echo https://www.python.org/
echo (any up-to-date version should work)
goto :eof