Skip to content

Instantly share code, notes, and snippets.

View 17's full-sized avatar
🦖

Jase Su 17

🦖
  • Oracle
  • Canton, China
View GitHub Profile
@17
17 / example.bat
Last active August 29, 2015 13:55
hrun.vbs is a command utility, that allows you to run multiple apps and commands without any window in the background.
@echo off
cscript hrun.vbs "cmd /c ipconfig /all >result.txt" >nul
pause
@17
17 / init.bat
Last active August 23, 2022 03:36
Cmder explorer context menu integration
@echo off
SET CMDER_ROOT=%~dp0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /ve /d "Cmder Here" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /v "Icon" /d "\"%CMDER_ROOT%cmder.exe\"" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /v "Extended" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder\command" /ve /d "\"%CMDER_ROOT%cmder.exe\" \"%%V\"" /f
pause