-
Notifications
You must be signed in to change notification settings - Fork 0
/
cool files.bat
98 lines (62 loc) · 1.85 KB
/
cool files.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
@echo off
color 3
title Cool File nAMeS
:p
set /p prompt1=would you like to Create the restricted files on desktop [Y/N]
if %prompt1%==Y goto st
if %prompt1%==y goto st
if %prompt1%==N goto end
if %prompt1%==n goto end
if %prompt1%==Yes goto st
if %prompt1%==yes goto st
if %prompt1%==No goto end
if %prompt1%==no goto end
if not %prompt1%==Y goto p
if not %prompt1%==y goto p
if not %prompt1%==N goto p
if not %prompt1%==n goto p
if not %prompt1%==Yes goto p
if not %prompt1%==yes goto p
if not %prompt1%==No goto p
if not %prompt1%==no goto p
:st
:: makes restricted files to play with on desktop
:: all file name i know of con being the moste intresting
md \\.\%userprofile%\desktop\con
md \\.\%userprofile%\desktop\com3
md \\.\%userprofile%\desktop\lpt3
md \\.\%userprofile%\desktop\lpt2
md \\.\%userprofile%\desktop\lpt1
md \\.\%userprofile%\desktop\prn
md \\.\%userprofile%\desktop\com2
md \\.\%userprofile%\desktop\com1
md \\.\%userprofile%\desktop\aux
:r
set /p prompt=Would you like to remove the files?
if %prompt%==Y goto remove
if %prompt%==y goto remove
if %prompt%==N goto end
if %prompt%==n goto end
if %prompt%==Yes goto remove
if %prompt%==yes goto remove
if %prompt%==No goto end
if %prompt%==no goto end
if not %prompt%==Y goto r
if not %prompt%==y goto r
if not %prompt%==N goto r
if not %prompt%==n goto r
if not %prompt%==Yes goto r
if not %prompt%==yes goto r
if not %prompt%==No goto r
if not %prompt%==no goto r
:remove
rd \\.\\%userprofile%\desktop\con
rd \\.\%userprofile%\desktop\com3
rd \\.\%userprofile%\desktop\lpt3
rd \\.\%userprofile%\desktop\lpt2
rd \\.\%userprofile%\desktop\lpt1
rd \\.\\%userprofile%\desktop\prn
rd \\.\%userprofile%\desktop\com2
rd \\.\%userprofile%\desktop\com1
rd \\.\\%userprofile%\desktop\aux
:end