• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

c# - how can 1 executable be started by another?

i would like to know how 1 app can start another app.
just like u do in "CMD.exe"
myprogram.exe -logion ..... ...... -pass .....


thanx for reading and kind regards.
0
Natural_Demon
Asked:
Natural_Demon
1 Solution
 
Jaime OlivaresCommented:
you can do as:

System.Diagnostics.Process.Start("myprogram.exe", "-arg1 -arg2");

also ensure to provide the proper path if the program is not in the same forlder as your running application.
0
 
Natural_DemonAuthor Commented:
thnx for prompt reply

0

Featured Post

Technology Partners: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now