ruby -ane 'gitdir="/tmp/"+$F[0]+"_"+$F[1]+".git";cmd="export GIT_DIR="+gitdir+" ; git init ";puts cmd; ;system(cmd) ' infofile
ruby -ane 'gitdir="/tmp/"+$F[0]+"_"+$F[1]+".git";cmd="export GIT_DIR="+gitdir+" ; git init ";puts cmd; ;system(cmd) ' infofile
cscript.exe "c:\\Inetpub\\AdminScripts\\adsutil.vbs" ENUM_ALL| grep -E "AppPoolId|Path|Comment|\[\/W3SVC\/[0-9]*\]"
cscript //Nologo "C:\\windows\\system32\\iisweb.vbs" /query |awk -F")" '{print $1}'|awk -F"(" '{print $2}'|grep W3SVC|grep -vE "W3SVC/1$" |xargs -I {} cscript.exe "c:\\Inetpub\\AdminScripts\\adsutil.vbs" ENUM {}
"cscript.exe \"c:\\Inetpub\\AdminScripts\\adsutil.vbs\" ENUM /P W3SVC/AppPools;\\
cscript //Nologo \"C:\\windows\\system32\\iisweb.vbs\" /query |awk -F\")\" '{print $1}'|awk -F\"(\" '{print $2}'|grep W3SVC|grep -vE \"W3SVC/1$\" |xargs -I {} cscript.exe \"c:\\Inetpub\\AdminScripts\\adsutil.vbs\" ENUM_ALL {}|grep -E \"AppPoolId|Path|Comment\""
$ ruby -e 'puts `sc qc DC_B|grep BINARY_PATH_NAME `.split("\\")[-1]'
Service.exe
$ sc qc DC_B
[SC] QueryServiceConfig 成功
SERVICE_NAME:
TYPE : 10 WIN32_OWN_PROCESS
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME :
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME :
DEPENDENCIES :
SERVICE_START_NAME : LocalSystem