@echo off
:: 接收命令行参数
set param=%1
echo received param: %param%
:: 将base64字符串保存到临时文件
if exist "%TEMP%\encode.txt" (
del "%TEMP%\encode.txt"
)
echo %param% > "%TEMP%\encode.txt"
:: 使用certutil解码base64
if exist "%TEMP%\decode.txt" (
del "%TEMP%\decode.txt"
)
certutil -decode "%TEMP%\encode.txt" "%TEMP%\decode.txt"
:: 读取文件到变量
set /p real_param=<%TEMP%\encode.txt
echo decoded param: %real_param%
exit /b 1
bat文件实现base64解码
最新推荐文章于 2024-07-09 16:59:23 发布