-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.ps1
46 lines (33 loc) · 932 Bytes
/
run.ps1
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
Write-Host "`n`tActions List`n`t--- --- --- --- --- ---`n`tDefault: Delete Items Only`n`tPress 1: Show Items Only`n`tPress 2: Show then Delete`n`tPress 0: Exit TheBlackHoleZombie`n"
# Input Strings
$confused = "What to do?"
$warning = "Confirm Delete? [0 to Cancel]"
# Alert Expressions
$waiting = "`nHurry Up! I can't wait`n`n"
$missed = "`nOpps! Missed Out`n`n"
$act = Read-Host "$confused"
switch ($act) {
(2) {
& 'Scripts\check.ps1'
Write-Host "$waiting"
$con = Read-Host "$warning"
switch($con) {
(0) {
& 'Scripts\cancel.ps1'
}
default {
& 'Scripts\clean.ps1'
}
}
}
(1) {
& 'Scripts\check.ps1'
Write-Host "$missed"
}
(0) {
& 'Scripts\cancel.ps1'
}
default {
& 'Scripts\clean.ps1'
}
}