Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to run an exe with parameters
Message
From
08/01/2005 15:56:09
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
00975340
Message ID:
00975442
Views:
15
Gerard,

As you realized, all parameters have to be string to begin with. You can always convert them if necessary.

~~Bonnie



>Hi Einar,
>Thanks for your reply.
>
>Am I right then , say if you wanted to pass 3 paraneters you would call the program like:
> MyProg.exe "Param1","Param2",100
>(Asuming first two are Charcater parameters and third is Numeric
>
>And in main calling mehod it would be something like:
> (Pardon the incorrect syntax)
>
> static void Main(string[] args)
> if args[0] = "abc" { do something}
> if args[2] = "def" {do smoethingB}
> if args[3] = 100 {do something}
>
>
>Just as I am writing this I notice i have a mix of types in the parameters !!is this going to cause a problem having 2 character parameters and 1 numeric .... can you have this in C# as you can in VFP ?
>
>
>Regards,
>Gerard
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform