-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdateFW.bat
86 lines (74 loc) · 1.89 KB
/
updateFW.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
@echo off
setlocal enableDelayedExpansion
set fwbin=c:\Users\Administrator\fwbin\
:MENU
cls
echo.
echo This utility will update the given FW on the drive of your choice.
echo.
echo The following updates are available:
echo.
echo -Micron [5]100 SSD
echo -Micron [1]100 SSD
echo -Micron m[6]00 SSD
echo -Crucial MX[3]00 SSD
echo.
choice /C 5136 /M "Please select:"
goto option-%errorlevel%
:option-1 UPDATE5100
echo.
echo.
echo The following drives are detected by Storage Executive:
msecli -L
echo.
set "driveno="
set /p driveno=Which Micron 5100 would you like to update? (Drive Number)
msecli -F -U "!fwbin!m5100.bin" -n "Drive!driveno!"
echo.
choice /C MCQ /M "Return to [M]enu, [C]ontinue or [Q]uit?"
if errorlevel 3 EXIT
if errorlevel 2 goto option-1
if errorlevel 1 goto MENU
:option-2
echo.
echo.
echo The following drives are detected by Storage Executive:
msecli -L
echo.
echo.
set "driveno="
set /p driveno=Which Micron 1100 would you like to update? (Drive Number)
msecli -F -U "!fwbin!m1100.bin" -n "Drive!driveno!"
echo.
choice /C MCQ /M "Return to [M]enu, [C]ontinue or [Q]uit?"
if errorlevel 3 EXIT
if errorlevel 2 goto option-2
if errorlevel 1 goto MENU
:option-3
echo.
echo.
echo The following drives are detected by Storage Executive:
msecli -L
echo.
set "driveno="
set /p driveno=Which MX300 would you like to update? (Drive Number)
msecli -F -U "!fwbin!mx300.bin" -n "Drive!driveno!"
echo.
choice /C MCQ /M "Return to [M]enu, [C]ontinue or [Q]uit?"
if errorlevel 3 EXIT
if errorlevel 2 goto option-3
if errorlevel 1 goto MENU
:option-4
echo.
echo.
echo The following drives are detected by Storage Executive:
msecli -L
echo.
set "driveno="
set /p driveno=Which M600 would you like to update? (Drive Number)
msecli -F -U "!fwbin!m600.bin" -n "Drive!driveno!"
echo.
choice /C MCQ /M "Return to [M]enu, [C]ontine or [Q]uit?"
if errorlevel 3 EXIT
if errorlevel 2 goto option-4
if errorlevel 1 goto MENU