Skip to content

Instantly share code, notes, and snippets.

@uhziel
Created April 23, 2012 02:23
Show Gist options
  • Save uhziel/2468334 to your computer and use it in GitHub Desktop.
Save uhziel/2468334 to your computer and use it in GitHub Desktop.
run PAGENT.exe and autoload all .ppk file in the current directory.
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
CALL:wi_run_pageant
GOTO:EOF
:::::::::::::::::::::::::::::::::::::::::::::::::::::
:: 工具函数
:::::::::::::::::::::::::::::::::::::::::::::::::::::
:wi_run_pageant
SETLOCAL
SET all_ppk=
FOR %%A IN (*.ppk) DO (
SET all_ppk=!all_ppk! %%A
)
START PAGEANT.EXE %all_ppk%
ENDLOCAL
EXIT /b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment