-
Notifications
You must be signed in to change notification settings - Fork 0
/
resethbpass.bat
45 lines (41 loc) · 1.36 KB
/
resethbpass.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
@echo off
rem Reset Password for hummingbot windows binary
rem created by: PtrckM
rem
rem download page https://raw.githubusercontent.com/PtrckM/hummingbot-support/master/resethbpass.bat
rem usage: curl -o resethbpass.bat https://raw.githubusercontent.com/PtrckM/hummingbot-support/master/resethbpass.bat
rem resethbpass.bat
rem
cls
echo.
echo [*] -- Reset Password - HB windows binary build v1
echo [-]
echo [*] -- Warning: This will delete encrypted api+key+secret files and wallet keyfiles.
echo [*] -- Created wallet thru hummingbot will be lost and cannot be used again,
echo [*] -- you have been warned...
echo [-]
timeout /T 5
echo.
echo [*] -- listing files...
echo.
dir /b %localappdata%\hummingbot.io\hummingbot\conf\encrypted* %localappdata%\hummingbot.io\hummingbot\conf\key_file*
echo.
echo [*] -- this files will be deleted in order to reset password...
:choice
set /P c=[-] -- Are you sure you want to continue (y/n)?
if /I "%c%" EQU "Y" goto :somewhere
if /I "%c%" EQU "N" goto :somewhere_else
goto :choice
:somewhere
echo [*] -- Removing files...
del /f /q %localappdata%\hummingbot.io\hummingbot\conf\encrypted*.json
del /f /q %localappdata%\hummingbot.io\hummingbot\conf\key_file*.json
echo [*] -- operation success, password has been reset...
echo.
pause
exit
:somewhere_else
echo [*] -- operation aborted... exiting!
echo.
pause
exit