Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
C
Send terminal command in program
Send terminal command in program
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
TheMadMidget
New Member
Join Date:
Oct 2006
Posts:
98
#1
Send terminal command in program
Apr 3 '07, 07:14 AM
I remember there is a way to send a terminal command inside a C program, but I forget how. I've tried googling for it but no success.
Savage
Recognized Expert
Top Contributor
Join Date:
Feb 2007
Posts:
1759
#2
Apr 3 '07, 07:16 AM
Originally posted by
TheMadMidget
I remember there is a way to send a terminal command inside a C program, but I forget how. I've tried googling for it but no success.
Use command system.
system(const char *command);
Savage
Comment
Post
Cancel
TheMadMidget
New Member
Join Date:
Oct 2006
Posts:
98
#3
Apr 3 '07, 07:17 AM
? what do you mean I thought it was a function
Comment
Post
Cancel
Savage
Recognized Expert
Top Contributor
Join Date:
Feb 2007
Posts:
1759
#4
Apr 3 '07, 07:19 AM
Originally posted by
TheMadMidget
? what do you mean I thought it was a function
Sorry,i wrote it wrong.It'is a function which executes DOS commands
Comment
Post
Cancel
TheMadMidget
New Member
Join Date:
Oct 2006
Posts:
98
#5
Apr 3 '07, 07:20 AM
I google that and found it, more or less understood what you meant. Thanks.
Comment
Post
Cancel
Savage
Recognized Expert
Top Contributor
Join Date:
Feb 2007
Posts:
1759
#6
Apr 3 '07, 07:21 AM
Originally posted by
TheMadMidget
I google that and found it, more or less understood what you meant. Thanks.
Allways a pleasure......
Savage
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment