-
Notifications
You must be signed in to change notification settings - Fork 0
/
gamelog.bat
190 lines (180 loc) · 3.68 KB
/
gamelog.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
// by [email protected]
@ECHO off
title Gamers Edge Game Logger
set gameout=None
// CALL gamelist.bat (pending addition)
:start
cls
ECHO **************************
ECHO GAMERS EDGE GAME LOGGER
ECHO **************************
ECHO.
ECHO Last Game Checked Out: %gameout%
ECHO.
ECHO 1 Check Out
ECHO 2 Check In
ECHO 3 Exit
ECHO.
set /p question=Choose:
if /i [%question%]==[1] goto checkout
if /i [%question%]==[2] goto checkin
if /i [%question%]==[3] goto exit
if /i [%user%]==[] goto start
:checkout
cls
ECHO **************************
ECHO GAMERS EDGE GAME LOGGER
ECHO **************************
ECHO.
ECHO CHECK-OUT
set /p user=Enter Username:
cls
ECHO **************************
ECHO GAMERS EDGE GAME LOGGER
ECHO **************************
ECHO.
ECHO CHECK-OUT
ECHO Username: %user%
set /p gameout=Game ID#:
:admin
cls
ECHO **************************
ECHO GAMERS EDGE GAME LOGGER
ECHO **************************
ECHO.
ECHO CHECK-OUT
ECHO Username: %user%
ECHO Game ID#: %gameout%
ECHO.
ECHO Employee:
ECHO 1 Dylan Hunt
ECHO 2 Ryan Helms
ECHO 3 Jason Pharr
ECHO 4 Other
set /p admin=Enter your employee ID#:
if /i [%admin%]==[1] GOTO dylan
if /i [%admin%]==[2] GOTO ryan
if /i [%admin%]==[3] GOTO jason
if /i [%admin%]==[4] GOTO other
if /i [%admin%]==[] GOTO admin
:dylan
set admin=Dylan Hunt
GOTO finish2
:ryan
set admin=Ryan Helms
GOTO finish2
:jason
set admin=Jason Pharr
GOTO finish2
:other
set /p admin=Enter your FULL NAME:
GOTO finish2
:finish2
CLS
ECHO **************************
ECHO GAMERS EDGE GAME LOGGER
ECHO **************************
ECHO.
ECHO CHECK-OUT
ECHO.
ECHO %date%
time/t
ECHO Username: %user%
ECHO Game ID#: %gameout%
ECHO Employee: %admin%
ECHO.
set /p correct=Correct? (y/n):
if [%correct%]==[y] GOTO write2
if [%correct%]==[yes] GOTO write2
if [%correct%]==[n] GOTO start
if [%correct%]==[no] GOTO start
:write2
ECHO. >> gamelog.txt
ECHO %date% >> gamelog.txt
time/t >> gamelog.txt
ECHO Username: %user% >> gamelog.txt
ECHO Game ID#: %gameout% >> gamelog.txt
ECHO Employee: %admin% >> gamelog.txt
ECHO CHECKED OUT >> gamelog.txt
ECHO _______________________ >> gamelog.txt
GOTO start
:checkin
cls
ECHO **************************
ECHO GAMERS EDGE GAME LOGGER
ECHO **************************
ECHO.
ECHO CHECK-IN
set /p user=Enter Username:
cls
ECHO **************************
ECHO GAMERS EDGE GAME LOGGER
ECHO **************************
ECHO.
ECHO CHECK-IN
ECHO Username: %user%
set /p gamein=Game ID#:
:admin
cls
ECHO **************************
ECHO GAMERS EDGE GAME LOGGER
ECHO **************************
ECHO.
ECHO CHECK-IN
ECHO Username: %user%
ECHO Game ID#: %gamein%
ECHO.
ECHO Employee:
ECHO 1 Dylan Hunt
ECHO 2 Ryan Helms
ECHO 3 Jason Pharr
ECHO 4 Other
set /p admin=Enter your employee ID#:
if /i [%admin%]==[1] GOTO dylan
if /i [%admin%]==[2] GOTO ryan
if /i [%admin%]==[3] GOTO jason
if /i [%admin%]==[4] GOTO other
if /i [%admin%]==[] GOTO admin
:dylan
set admin=Dylan Hunt
GOTO finish1
:ryan
set admin=Ryan Helms
GOTO finish1
:jason
set admin=Jason Pharr
GOTO finish1
:other
set /p admin=Enter your FULL NAME:
GOTO finish1
:finish1
CLS
ECHO **************************
ECHO GAMERS EDGE GAME LOGGER
ECHO **************************
ECHO.
ECHO CHECK-IN
ECHO.
ECHO %date%
time/t
ECHO Username: %user%
ECHO Game ID#: %gamein%
ECHO Employee: %admin%
ECHO.
set /p correct=Correct? (y/n):
if [%correct%]==[y] GOTO write1
if [%correct%]==[yes] GOTO write1
if [%correct%]==[n] GOTO start
if [%correct%]==[no] GOTO start
:write1
ECHO. >> gamelog.txt
ECHO %date% >> gamelog.txt
time/t >> gamelog.txt
ECHO Username: %user% >> gamelog.txt
ECHO Game ID#: %gamein% >> gamelog.txt
ECHO Employee: %admin% >> gamelog.txt
ECHO CHECKED IN >> gamelog.txt
ECHO _______________________ >> gamelog.txt
GOTO start
:exit
exit