Global $g_sValue, $g_sParam1 $g_sParam1 = "empty" If $CMDLINE[0] Then $g_sParam1 = $CMDLINE[1] EndIf $g_sValue = InputBox("Test", "enter a number between 1 and 99 : ", "0") MsgBox(4096, "", "Parameter = " & $g_sParam1 & @CRLF & "%ERRORLEVEL% = "& $g_sValue) Exit($g_sValue)