473,394 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

hide prompt when using system() on Windows

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
Nov 14 '05 #1
1 2556
Michael Goerz wrote:
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
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Nov 14 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: genetic.error | last post by:
I'm moving from Vb6 to VB.Net. I have a feeling this has come up before... The VS.Net MSDN file seems to state that the following should work: Form1.Show Form1.Visible = True Form1.Hide...
2
by: Ajai Kumar .R | last post by:
Hai all, I've two or more forms on my app. My requirement is, Have to show the first form asa the user press a button have to hide the first form and show the second form. If the user press the...
0
by: Helen | last post by:
Here's the code: how do I prevent the parameter prompt from appearing during run time? Thanks Imports CrystalDecisions.CrystalReports.Engin Imports CrystalDecisions.Share Public Class Form...
4
by: Never Best | last post by:
I have an application. I want it so when the user minimizs the window it goes into the system tray, and while in the system tray I don't want it in the "Alt-Tab" list. (When the program starts it...
0
by: Gian Paolo | last post by:
this is something really i can't find a reason. I have a form with a tabcontrol with tree pages, in the second page there is a Data GRid View. Plus i have a class. When i open the form i...
9
by: Endless Story | last post by:
My last version of Python was 2.4, running smoothly on XP with path c: \Python24 - no need even to include this path in PATH; everything worked as it's supposed to at the command line. Just...
0
by: shanmugam | last post by:
Hi All How can i hide the command prompt window when executing the system command in perl. Thanks in advance Shanmugam
2
by: sorno | last post by:
In windows, if I make a very simple tkinter program like: from Tkinter import * root = Tk() label = Label(root,text="hello") label.pack() root.mainloop() There will be a window showing...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.