-
system command in background
i have a line in my code
system("dir") in a program in dev c++
it causes a seperate window command prompt to open and then it executes.
can we run it in background so that user does not even know of execution of the command
-
Senior Member
OpenGL Pro
Re: system command in background
This doesn't have anything to do with OpenGL. I suggest you ask this question in a C++ forum...
-
Re: system command in background
it is being used in part of my opengl project .
-
Senior Member
OpenGL Guru
Re: system command in background
It doesn't matter if your project uses OpenGL or not. Running a system command in the background is totally irrelevant to OpenGL.
-
Junior Member
Regular Contributor
Re: system command in background
I agree with Bob; this is unrelated to OpenGL. Try CodeProject.com for example.
But to answer to this question shortly: No, you can't. The system function always opens up a console window displaying the results of the command. You can try using popen, or even better, use the Windows API to get directory contents. Ask from C++ forum for details.
-
Re: system command in background
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules