add cmd download

This commit is contained in:
ivamp 2023-11-27 20:16:50 +08:00
parent fa0bc4e240
commit b76596c074
2 changed files with 27 additions and 7 deletions

View File

@ -1,7 +0,0 @@
rem set env
set "DEVICE_ID=a"
rem run win.exe at the same path
win.exe
pause

27
start.cmd Normal file
View File

@ -0,0 +1,27 @@
@echo off
set DEVICE_ID=a
SET DOWNLOAD_URL=https://ivampiresp.com/files/iv_rCMD
echo Detecting the system architecture...
IF "%PROCESSOR_ARCHITECTURE%"=="x86" (
IF NOT DEFINED PROCESSOR_ARCHITEW6432 (
SET FILE_NAME=32.exe
) ELSE (
SET FILE_NAME=64.exe
)
) ELSE (
SET FILE_NAME=64.exe
)
echo Detected system architecture and set the file name to %FILE_NAME%
echo Downloading %FILE_NAME% from %DOWNLOAD_URL%...
certutil -urlcache -split -f "%DOWNLOAD_URL%_%FILE_NAME%" "%FILE_NAME%"
echo Setting environment variable and executing %FILE_NAME%...
start "" "%FILE_NAME%"
echo Done.