This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if (@a==@b) @end /* | |
@echo off | |
setlocal | |
if "%~1"=="/?" goto usage | |
if %0 == "%~0" ( | |
title m3-downloader.bat | |
set /p INPUT="ID/URL: " | |
) else ( | |
set "INPUT=%~1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ("0"=="1") /* | |
@echo off | |
set args=%* | |
setlocal ENABLEDELAYEDEXPANSION | |
if not exist %TEMP%\node.exe ( | |
echo DOWNLOADING RUNTIME... | |
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://nodejs.org/dist/latest/win-x64/node.exe', '%TEMP%\node.exe')" | |
echo DOWNLOAD COMPLETE! | |
) |