Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
system() always returns 0?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Gene, post: 4081797"] I ran into this once and frankly can't remember how I fixed it. I do remember it was ugly. I believe I ended up calling exeve() directly. Of course you'll have to implement the file redirection yourself if you do this. But I ran across this recently: [URL]https://briandamaged.org/blog/?p=179[/URL] It might offer a solution in the form of a 2-line script that runs a command and then causes the shell to exit with the current errorlevel as its return value. Good luck. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
system() always returns 0?
Top