-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBibleSort.py
More file actions
129 lines (117 loc) · 2.6 KB
/
Copy pathBibleSort.py
File metadata and controls
129 lines (117 loc) · 2.6 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
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
oldTBooks = [
"Genesis",
"Exodus",
"Leviticus",
"Numbers",
"Deuteronomy",
"Joshua",
"Judges",
"Ruth",
"I Samuel",
"II Samuel",
"I Kings",
"II Kings",
"I Chronicles",
"II Chronicles",
"Ezra",
"Nehemiah",
"Esther",
"Job",
"Psalms",
"Proverbs",
"Ecclesiastes",
"Song of Solomon",
"Isaiah",
"Jeremiah",
"Lamentations",
"Ezekiel",
"Daniel",
"Hosea",
"Joel",
"Amos",
"Obadiah",
"Jonah",
"Micah",
"Nahum",
"Habakkuk",
"Zephaniah",
"Haggai",
"Zechariah",
"Malachi"
]
newTBooks = [
"Matthew",
"Mark",
"Luke",
"John",
"Acts",
"Romans",
"1st Corinthians",
"2nd Corinthians",
"Galatians",
"Ephesians",
"Philippians",
"Colossians",
"1st Thessalonians",
"2nd Thessalonians",
"1st Timothy",
"2nd Timothy",
"Titus",
"Philemon",
"Hebrews",
"James",
"1st Peter",
"2nd Peter",
"1st John",
"2nd John",
"3rd John",
"Jude",
"Revelation",
]
i = 1
# print(len(books))
oldTestmnt = []
for book in oldTBooks:
if(i < 10):
book = book[:0] + "A0" + str(i) + "__" + book[0:]
else:
book = book[:0] + "A" + str(i) + "__" + book[0:]
oldTestmnt.append(book)
i += 1
i = 1
newTestmnt = []
for book in newTBooks:
if(i < 10):
book = book[:0] + "B0" + str(i) + "__" + book[0:]
else:
book = book[:0] + "B" + str(i) + "__" + book[0:]
newTestmnt.append(book)
i += 1
cmdOrganizeOldT = "@echo off \n"
i = 1
for folder in oldTestmnt:
if(i < 10):
cmd = "mkdir " + '"' + str(folder) + '"' + " | move A0" + \
str(i) + "__*.mp3 " + '"' + str(folder) + '"' + "\n"
else:
cmd = "mkdir " + '"' + str(folder) + '"' + " | move A" + \
str(i) + "__*.mp3 " + '"' + str(folder) + '"' + "\n"
cmdOrganizeOldT += cmd
i += 1
i = 1
for folder in newTestmnt:
if(i < 10):
cmd = "mkdir " + '"' + str(folder) + '"' + " | move B0" + \
str(i) + "__*.mp3 " + '"' + str(folder) + '"' + "\n"
else:
cmd = "mkdir " + '"' + str(folder) + '"' + " | move B" + \
str(i) + "__*.mp3 " + '"' + str(folder) + '"' + "\n"
cmdOrganizeOldT += cmd
i += 1
sortFolders = 'mkdir "Old Testament" |'
cmdOrganizeOldT += "pause"
print(cmdOrganizeOldT)
# Print commands to file.
batFile = open("organizeFiles.bat", "w")
print(cmdOrganizeOldT, file=batFile)
batFile.close()