install.bat
来自「IBE是一种非对称密码技术」· Batch 代码 · 共 31 行
BAT
31 行
@echo off
set CWD=%cd%
rem relace \ with \\ in the path
SET CWD=%CWD:\=\\%
echo Windows Registry Editor Version 5.00 > temp.reg
echo [HKEY_CLASSES_ROOT\.vat] >> temp.reg
echo @="vatfile" >> temp.reg
echo "Content Type"="application/x-vs-authtoken" >> temp.reg
echo [HKEY_CLASSES_ROOT\vatfile] >> temp.reg
echo @="Voltage Authentication Token" >> temp.reg
echo "EditFlags"=hex:00,00,01,00 >> temp.reg
echo [HKEY_CLASSES_ROOT\vatfile\shell] >> temp.reg
echo [HKEY_CLASSES_ROOT\vatfile\shell\open] >> temp.reg
echo [HKEY_CLASSES_ROOT\vatfile\shell\open\command] >> temp.reg
echo @="%CWD%\\TokenHandler.exe storetoken \"%%1\"" >> temp.reg
echo [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/x-vs-authtoken] >> temp.reg
echo "Extension"=".vat" >> temp.reg
rem run the registry file created and delete it
regedit /S temp.reg
del temp.reg
echo Token handler successfully installed
pause
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?