Consolidate all standalone utility scripts into contrib/scripts/: - Perl: avg_blocktime.pl, block_time.pl, gen-zaddrs.pl, sda_checkpoints.pl, sdl_checkpoints.pl, hush_block_subsidy_per_halving, hush_halvings, hush_scanner, hush_supply, hush_supply_old - Shell: fresh_clone_compile_and_run.sh, tidy_datadir.sh, dragonx_scanner - Python: convert_address.py - BAT: hush-uri.bat Update path references in contrib/README.md, doc/OLD_WALLETS.md, doc/relnotes/README.md, and sdl_checkpoints.pl.
47 lines
1.2 KiB
Batchfile
47 lines
1.2 KiB
Batchfile
@Echo On
|
|
Title Reg Converter v1.1 & Color 1A
|
|
REM ~ call :IsAdmin
|
|
|
|
call :RegExport
|
|
Exit
|
|
|
|
:RegExport
|
|
Set RegFile="%Temp%\~etsaclu.tmp"
|
|
|
|
Set "hush=%~dp0"
|
|
set "hush=%hush:\=\\%"
|
|
|
|
If Exist %RegFile% (
|
|
Attrib -R -S -H %RegFile% & Del /F /Q %RegFile%
|
|
If Exist %RegFile% cls & Echo Could not delete file %RegFile% & Pause
|
|
)
|
|
> %RegFile% Echo Windows Registry Editor Version 5.00
|
|
>> %RegFile% Echo.
|
|
>> %RegFile% Echo [HKEY_CLASSES_ROOT\hush]
|
|
>> %RegFile% Echo @="URL:hush protocol"
|
|
>> %RegFile% Echo "URL Protocol"=""
|
|
>> %RegFile% Echo.
|
|
>> %RegFile% Echo [HKEY_CLASSES_ROOT\hush\DefaultIcon]
|
|
>> %RegFile% Echo @="silentdragon.exe"
|
|
>> %RegFile% Echo.
|
|
>> %RegFile% Echo [HKEY_CLASSES_ROOT\hush\Shell]
|
|
>> %RegFile% Echo.
|
|
>> %RegFile% Echo [HKEY_CLASSES_ROOT\hush\Shell\Open]
|
|
>> %RegFile% Echo.
|
|
>> %RegFile% Echo [HKEY_CLASSES_ROOT\hush\Shell\Open\Command]
|
|
>> %RegFile% Echo @="%hush%silentdragon.exe \"%%1\""
|
|
|
|
Start /Wait %systemroot%\Regedit.exe /S %RegFile%
|
|
Del %RegFile%
|
|
goto:eof
|
|
|
|
:IsAdmin
|
|
Reg.exe query "HKU\S-1-5-19\Environment"
|
|
If Not %ERRORLEVEL% EQU 0 (
|
|
Cls & Echo You must have administrator rights to continue ...
|
|
Pause & Exit
|
|
)
|
|
Cls
|
|
goto:eof
|
|
|