Also, there is another command for Windows XP to stop network connections, the code is as follows:
Code:
system("NET STOP NETWORK CONNECTIONS");
You usualy have a pair of quotes surrounding Network connections, but of course, it wont work here.
Which means that the command probaly wont work either, however, you could to it this way:
Code:
system("start net.bat");
And then save the following code as net.bat in the programs folder, via Notepad:
Code:
@echo off
net stop "network connections"
exit
And then to start it back up, create a another batch file using net start instead of net stop, or use variables.
Of course, Crazy Norman's way is more efficient, and easier.