hide prompt when using system() on Windows

M

Michael Goerz

Hi,

when my program uses system(), system("latex temp.tex") in this case,
to execute some DOS-command on Windows, I always have the prompt popping
up in front while the command is running. How can I prevent this? I
simply want to execute the command, but not see any DOS-boxes (just like
in an Linux environment).

Thanks,

Michael Goerz
 
M

Michael Mair

Michael said:
Hi,

when my program uses system(), system("latex temp.tex") in this case, to
execute some DOS-command on Windows, I always have the prompt popping up
in front while the command is running. How can I prevent this? I simply
want to execute the command, but not see any DOS-boxes (just like in an
Linux environment).
What the function system does with the passed string (and the passed
string itself) is highly system-specific, so the answer is:
Within the scope of standard C, nothing can be done.
<OT>
I guess it is more a question of how DOS-commands are executed on
your system; maybe you have to change that in the registry or you
have to use another command line or ...
I really do not know.
</OT>

Probably a Windows-NG from comp.os.ms-windows.* can help you.


Cheers
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top