컴퓨터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
Posted by Zasfe

댓글을 달아 주세요