Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to execute embedded commands from command line in Vista or XP

1 view
Skip to first unread message

Preethi

unread,
Dec 11, 2008, 5:46:01 AM12/11/08
to
I am trying to write a CPP program that will configure IPSec policies in
Vista PC. I had like to execute the following command from the program:
"netsh advfirewall consec> show mode".

From the CPP program I try to invoke this command like this:
a) system(netsh) && system(advfirewall)
b) system(netsh) && firewall

But, I am unable to get the result I want.
I actually want to configure the rules via the program for automation.
Can any one help me in this?

0 new messages