By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,953 Members | 1,131 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,953 IT Pros & Developers. It's quick & easy.

Start program with excel from "MS Visual Studio"

P: n/a
Hi C-community!

How do I start the program
MyProg.exe with the parameter "Tuesday 2006",
which can be found in the folder "Microsoft Visual Studio"?

I want to use the function excel from process.h!

Does anybody have a solution??

Thanks for your help!

Apr 24 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Sorry,
it must be of course execl!

Apr 24 '06 #2

P: n/a

Zero wrote:
Hi C-community!

How do I start the program
MyProg.exe with the parameter "Tuesday 2006",
which can be found in the folder "Microsoft Visual Studio"?
Even if this was topical, you did not provide enough information for
someone to help you. Ask yourself: "on what disk is this application of
mine?"
I want to use the function excel from process.h!


These are non-standard. You'd better ask in one of the M$ groups.

For a standard, but still non portable way, look up `system()`
function:

#include <stdlib.h>

system("d:\path\dir\MyProg.exe \"Tuesday 2006\"");

Apr 24 '06 #3

P: n/a
Thanks for your help!

Problem with system:

The console which is opened when running system is visible while the
started program is running.

Apr 24 '06 #4

P: n/a

Zero wrote:
Thanks for your help!
You're welcome, but please quote context. Usenet is not a message board
(regradless of what Google shows), and not all the messages are visible
to all the users all the time.

If posting from Google, click Show Options, and then Reply that becomes
visible.
Problem with system:

The console which is opened when running system is visible while the
started program is running.


As I said, you'll have to ask in the group dealing with your system.
Here, only Standard C (as defined by ISO/ANSI) is discussed.

Apr 24 '06 #5

P: n/a

You can use any of the functions from the exec family. It seems better
to use execlp for your case. I think the microsoft visual studio's
library provides the standard exec functions themselves. Read the msdn
entry for the execlp. You can supply the arguments in the call itself.

Apr 24 '06 #6

P: n/a
arun wrote:

You can use any of the functions from the exec family. It seems
better to use execlp for your case. I think the microsoft visual
studio's library provides the standard exec functions themselves.
Read the msdn entry for the execlp. You can supply the arguments
in the call itself.


Whatever you are talking about it is virtually incomprehensible
lacking context. However there are no such things as "standard
exec functions" in C. The closest thing is the system function.
Microsofts library has nothing to do with standard C, and is
off-topic here.

To post reasonable messages with reasonable quoted context, see my
sig. below.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>

Apr 24 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.