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

CALL EXE FILE FROM MAIN MENU

Hi All,

I have several separated application.

I want to create a Main Menu application, where we could call those application above.

How could I do it ?

Thank you.
0
emi_sastra
Asked:
emi_sastra
  • 6
  • 6
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
you can use Process.Start(path to your .exe)
0
 
emi_sastraAuthor Commented:
Hi emoreau,

There are severals things you should know and some questions about it.

1. Each of the application, include the main menu has login.
2. How could we arrange it like it is just one set application, not many.
3. How to avoid recall again the same application.

Thank you.
0
 
emi_sastraAuthor Commented:
After login at he main menu application, I don't want the user to login again when call another child application.

Thank you.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
Éric MoreauSenior .Net ConsultantCommented:
have you created all other applications or are those packages you don't have control over?

is there any way to pass credentials when you start the other applications?
0
 
emi_sastraAuthor Commented:
I have all the control over those application.

What should I do to bypass the login and other information to child applications ?

Thank you.
0
 
Éric MoreauSenior .Net ConsultantCommented:
you should modify these applications to accept encrypted credentials passed by arguments. if no valid credentials are passed, then you popup the login form.
0
 
emi_sastraAuthor Commented:
I have no idea about it.

How could I do it on parent app and child app?

Would you please provide sample code ?

The login info just UserId and Password.

Thank you.
0
 
Éric MoreauSenior .Net ConsultantCommented:
I don't have an example to pass credentials.

for a general idea of how to pass arguments, check http://www.emoreau.com/Entries/Articles/2008/11/Passing-arguments-to-an-application-startup.aspx
0
 
emi_sastraAuthor Commented:
I don't quite get it now.

In child app, where I trap the parameters ?

In parent app, how to call and pass the parameter to the child ?

In parent app, how to avoid the child app called / start again if the child app is running ?

Thank you.
0
 
Éric MoreauSenior .Net ConsultantCommented:
the demo application in my article is an example of a child application receiving parameters
0
 
Éric MoreauSenior .Net ConsultantCommented:
to check if an app is running: http://www.dreamincode.net/code/snippet1541.htm
0
 
emi_sastraAuthor Commented:
Ok.

Thank you very much for your help.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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