How do i use parameters in a system call?
For example: ipconfig /all
spockenheit 0 Newbie Poster
Recommended Answers
Jump to Postyou have to create one string that contains all the parameters. For example
system("ipconfig /all ");
Jump to PostThank you works real nice.
But I have another problem, how do a change directory?
I have tried "cd .." but it wont work.Well, you coul just call chdir() function.
All 6 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
spockenheit 0 Newbie Poster

iamthwee
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

iamthwee
Duoas 1,025 Postaholic Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.