Created
April 23, 2012 02:23
-
-
Save uhziel/2468334 to your computer and use it in GitHub Desktop.
run PAGENT.exe and autoload all .ppk file in the current directory.
This file contains 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
@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