Hi all,
how can I disable internet in windows/Linux machine. I want to disable completely and enable it at will using C++
Thanks

Recommended Answers

All 2 Replies

I think you can use system() call in windows for that, with system() call one can easily supply dos based command.
And as you want to switch off services related to internet.
You can use "net start" and "net stop" command for enabling and disabling any system services. So there you can specify your internet services.

Cool, so which command is used to stop internet services but not local networking. Only internet?

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.