The following example beeps once for each 揵eep?passed in on the command line. The example terminates the application if 揺xit?is passed in on the command line.<br><br>procedure TForm1.FormCreate(Sender: TObject);<br><br>var<br> i: Integer;<br> for i := 0 to ParamCount -1 do<br> begin<br> if LowerCase(ParamStr(i)) = 'beep' then<br> Beep(10000,1000)<br> else if (LowerCase(ParamStr(i)) = 'exit' then<br> Application.Terminate;<br> end;<br>end;<br>