我想做一个exe2bat,但是XP及以下系统没有certutil.
我觉的可以调用mshta来做到,就像这个指令可以调用这个运行脚本隐藏cmd窗口一样
@璐村惂鐢ㄦ埛_000076K馃惥 off
if "%1"=="h" goto begin
start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
REM
复制代码
这个是我目前exe2bat的成果
@echo off
set v="%temp%\HelloWorld.exe"
del %v% >NUL 2>NUL
certutil -decode "%~f0" %v% >NUL 2>NUL
start "" %v%
goto:1
-----BEGIN CERTIFICATE-----
base64码
-----END CERTIFICATE-----
:1
我觉的可以调用mshta来做到,就像这个指令可以调用这个运行脚本隐藏cmd窗口一样
@璐村惂鐢ㄦ埛_000076K馃惥 off
if "%1"=="h" goto begin
start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
REM
复制代码
这个是我目前exe2bat的成果
@echo off
set v="%temp%\HelloWorld.exe"
del %v% >NUL 2>NUL
certutil -decode "%~f0" %v% >NUL 2>NUL
start "" %v%
goto:1
-----BEGIN CERTIFICATE-----
base64码
-----END CERTIFICATE-----
:1