-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDriveLoader.bat
73 lines (67 loc) · 1.19 KB
/
DriveLoader.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
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
@echo off
::Start Info
echo ---Welcome to DVD drive loader---
ping 192.0.2.2 -n 1 -w 300 > nul
echo.
ping 192.0.2.2 -n 1 -w 300 > nul
echo ---Developed by Zac Ingoglia (Poisonite101)---
ping 192.0.2.2 -n 1 -w 300 > nul
echo.
::Select Run Mode
ping 192.0.2.2 -n 1 -w 400 > nul
echo What Would you like to do?
ping 192.0.2.2 -n 1 -w 200 > nul
echo Press 1 to load all DVDs.
echo Press 2 to eject all DVDs.
echo Press 3 to exit drive loader.
set /p Mode= Input Mode:
::Load (1)
if /i %Mode% == 1 (
echo.
echo ---Initializing---
ping 192.0.2.2 -n 1 -w 400 > nul
echo ---Please Wait---
ping 192.0.2.2 -n 1 -w 400 > nul
goto :LoadDVDs
) else (
goto :2
)
::Eject (2)
:2
if /i %Mode% == 2 (
echo.
echo ---Initializing---
ping 192.0.2.2 -n 1 -w 400 > nul
echo ---Please Wait---
ping 192.0.2.2 -n 1 -w 400 > nul
goto :EjectDVDs
) else (
goto :3
)
::Exit (3)
:3
if /i %Mode% == 3 (
:Stop
echo Exiting
ping 192.0.2.2 -n 1 -w 1000 > nul
exit
) else (
goto :Stop
)
::LoadDVDs
:LoadDVDs
echo.
echo ---Loading All DVDs---
ping 192.0.2.2 -n 1 -w 400 > nul
node Load.js
pause
goto eof
::Copy Movies (For Option 2)
:EjectDVDs
echo.
echo ---Ejecting All DVDs---
ping 192.0.2.2 -n 1 -w 400 > nul
node Eject.js
pause
goto eof
:eof