Solved

CALL EXE FILE FROM MAIN MENU

Posted on 2011-03-18
12
313 Views
Last Modified: 2012-05-11
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
Comment
Question by:emi_sastra
  • 6
  • 6
12 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 35166377
you can use Process.Start(path to your .exe)
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 35166487
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
 
LVL 1

Author Comment

by:emi_sastra
ID: 35166497
After login at he main menu application, I don't want the user to login again when call another child application.

Thank you.
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 35166588
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
 
LVL 1

Author Comment

by:emi_sastra
ID: 35166609
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
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 35167075
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:emi_sastra
ID: 35167101
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
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 35167676
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
 
LVL 1

Author Comment

by:emi_sastra
ID: 35169759
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
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 35170140
the demo application in my article is an example of a child application receiving parameters
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 35170141
to check if an app is running: http://www.dreamincode.net/code/snippet1541.htm
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 35171131
Ok.

Thank you very much for your help.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

930 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now