-
Notifications
You must be signed in to change notification settings - Fork 0
/
Setting.bat
132 lines (104 loc) · 2.7 KB
/
Setting.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
@echo off
cd Setting
for /f "tokens=* delims=" %%x in (DirToSave.txt) do set dir=%%x
set /p dir1="Select the folder where you want to download the file [%dir%]: "
IF [%dir1%] == [] goto Dirend
:dirset
echo %Dir1%>DirToSave.txt
:Dirend
echo.
goto DC
:DC
for /f "tokens=* delims=" %%x in (DownloadCopy.txt) do set dow=%%x
if %dow%==Y goto DCy
if %dow%==y goto DCy
goto DCn
:DCy
set /p dow1=Want to make a copy of the downloaded file in the folder: "Lib/Download" [Y/n]:
IF [%dow1%] == [] goto DCend
IF [%dow1%] == [y] goto DCset
IF [%dow1%] == [Y] goto DCset
IF [%dow1%] == [N] goto DCset
IF [%dow1%] == [n] goto DCset
goto ErrSetDC
goto DCend
:DCn
set /p dow1=Want to make a copy of the downloaded file in the folder: "Lib/Download" [y/N]:
IF [%dow1%] == [] goto DCend
IF [%dow1%] == [y] goto DCset
IF [%dow1%] == [Y] goto DCset
IF [%dow1%] == [N] goto DCset
IF [%dow1%] == [n] goto DCset
goto ErrSetDC
goto DCend
:DCset
echo %dow1%> DownloadCopy.txt
:DCend
echo.
goto MP
:MP
for /f "tokens=* delims=" %%x in (Mp3_OR_Mp4.txt) do set mp=%%x
if [%mp%] == [mp4] goto MP4
if [%mp%] == [Mp4] goto MP4
if [%mp%] == [mP4] goto MP4
if [%mp%] == [MP4] goto MP4
if [%mp%] == [video] goto MP4
if [%mp%] == [Video] goto MP4
if [%mp%] == [VIDEO] goto MP4
goto MP3
:MP4
set /p MP1=You can download video or audio files [VIDEO/audio]:
IF [%mp1%] == [] goto MPend
if [%mp1%] == [mp4] goto MPset
if [%mp1%] == [Mp4] goto MPset
if [%mp1%] == [mP4] goto MPset
if [%mp1%] == [MP4] goto MPset
if [%mp1%] == [video] goto MPset
if [%mp1%] == [Video] goto MPset
if [%mp1%] == [VIDEO] goto MPset
if [%mp1%] == [mp3] goto MPset
if [%mp1%] == [Mp3] goto MPset
if [%mp1%] == [mP3] goto MPset
if [%mp1%] == [MP3] goto MPset
if [%mp1%] == [audio] goto MPset
if [%mp1%] == [Audio] goto MPset
if [%mp1%] == [AUDIO] goto MPset
goto ErrSetMP
:MP3
set /p MP1=You can download video or audio files [video/AUDIO]:
IF [%mp1%] == [] goto MPend
if [%mp1%] == [mp4] goto MPset
if [%mp1%] == [Mp4] goto MPset
if [%mp1%] == [mP4] goto MPset
if [%mp1%] == [MP4] goto MPset
if [%mp1%] == [video] goto MPset
if [%mp1%] == [Video] goto MPset
if [%mp1%] == [VIDEO] goto MPset
if [%mp1%] == [mp3] goto MPset
if [%mp1%] == [Mp3] goto MPset
if [%mp1%] == [mP3] goto MPset
if [%mp1%] == [MP3] goto MPset
if [%mp1%] == [audio] goto MPset
if [%mp1%] == [Audio] goto MPset
if [%mp1%] == [AUDIO] goto MPset
goto ErrSetMP
:MPset
echo %mp1%> Mp3_OR_Mp4.txt
:MPend
echo.
echo.
goto end
:ErrSetDC
cls
echo You have entered an invalid option. Try again.
pause
cls
goto DC
:ErrSetMP
cls
echo You have entered an invalid option. Try again.
pause
cls
goto MP
:end
pause