Scenario:
I want to parse a string variable into a system call..
I have a file with a range of ip's,
after reading in 1 ip I'd like to perform a call
to " nbtstat" (it identifies people on a network)
this works....
int main()
{
system("nbtstat -A xxx.xx.xxx.x"//If I entered
//the actual IP address
}
what I want to know is how to get my variable inside the call
so I can replace the x's with a var like a char* ..ie %s
does this make any sense?
Please help
I want to parse a string variable into a system call..
I have a file with a range of ip's,
after reading in 1 ip I'd like to perform a call
to " nbtstat" (it identifies people on a network)
this works....
int main()
{
system("nbtstat -A xxx.xx.xxx.x"//If I entered
//the actual IP address
}
what I want to know is how to get my variable inside the call
so I can replace the x's with a var like a char* ..ie %s
does this make any sense?
Please help