Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Get Command Line Options

Posted on 2000-04-01
2
Medium Priority
?
154 Views
Last Modified: 2010-04-04
How could I get commandline options for example if I was to run my program like this

project.exe /a /s

how could I get the /a and /s?
0
Comment
Question by:nafa2221
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 7

Expert Comment

by:Motaz
ID: 2677324
ParamStr(1) and ParamStr(2)

If you want to know the number of passed parameters use ParamCount

Azzoz
0
 
LVL 7

Accepted Solution

by:
Motaz earned 200 total points
ID: 2677329
If you want to display all parameters in a memo do this:

- Drop a Memo
- Drop a Button and write this code in it's OnClick event:

var
  i: Integer;
begin
  Memo1.Clear;
  for i:= 1 to ParamCount do
   Memo1.Lines.Add(ParamStr(i));
end;

Motaz
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question