'agument'에 해당되는 글 1건
[ Autoit / CmdLine ] 커맨드라인을 입력받아 처리하는 함수의 일부입니다. - 2008/09/04 13:31
/윈도우
Func _ParseCmdLine()
Local $intCmdTotal = _GetThisArg(0)
Local $intCmdNum = 1
Local $strCmdCode
While $intCmdNum <= $intCmdTotal
$strCmdCode = _GetThisArg($intCmdNum)
Switch $strCmdCode
Case '-p', '--PATH'
$intCmdNum = $intCmdNum +1
$SourceRepositoryPath = _GetThisArg($intCmdNum)
Case '-e', '--EXT'
$intCmdNum = $intCmdNum +1
$FileExt = _GetThisArg($intCmdNum)
EndSwitch
$intCmdNum = $intCmdNum +1
WEnd
EndFunc ;==>_ParseCmdLine
Func _GetThisArg($_n)
If $CmdLine[0] = 0 or $CmdLine[0] < $_n then Return ""
Return $CmdLine[$_n]
EndFunc ;==>_GetThisArg
'윈도우' 카테고리의 다른 글
| webknight 2.2 (0) | 2008/09/07 |
|---|---|
| [ Autoit / MSSQL ] 데이터베이스를 사용하고자 할경우 (0) | 2008/09/04 |
| [ Autoit / CmdLine ] 커맨드라인을 입력받아 처리하는 함수의 일부입니다. (0) | 2008/09/04 |
| Rsync 사용하기 (2) | 2008/08/25 |
| Rsync 사용시 에러 발생 (0) | 2008/08/25 |
| [해킹] GoogleBot 으로 위장한 웹해킹 시도 (0) | 2008/06/10 |