cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Safe alternative to system in c++
Safe alternative to system in c++
Aug 11, 2014 at 10:32pm UTC
fabtasticwill
(218)
I have seen many things that say why you shouldn't use system() in c++. But what I couldn't find was a good alternative to system(). I need to use the console, but I don't know a good way to do it.
Aug 11, 2014 at 10:38pm UTC
Duthomhas
(13206)
It depends on what you are trying to do.
What are you trying to do?
Aug 11, 2014 at 11:00pm UTC
fabtasticwill
(218)
I'm using it to get the output of a vbs file by using the command
cscript
//NOLOGO script.js > output.out
Last edited on
Aug 11, 2014 at 11:07pm UTC
Aug 12, 2014 at 2:12am UTC
Duthomhas
(13206)
That's an appropriate use for
system()
. Go ahead and use it.
Topic archived. No new replies allowed.