Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,108 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,724 people online right now. Registration is fast and FREE... Join Now!




WiFi device

 
Reply to this topicStart new topic

WiFi device, find device then disable it and enable it?

skyHigh
3 Oct, 2007 - 10:02 AM
Post #1

D.I.C Head
**

Joined: 1 Oct, 2007
Posts: 87


My Contributions
can someone help me on this because I really want to do is to turn On and Off WiFi device. So I think first, I need to find the device whether it exists in the system, if finds it, then it will get disabled.. Does anyone know on how I'm going to do that?

very appreciated for any suggestion...
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: WiFi Device
3 Oct, 2007 - 10:07 AM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,441



Thanked: 64 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
Without getting low-level results, you could get quick & sloppy results using command line options:

Windows:
CODE

system("ipconfig")


*nix:
CODE

system("ifconfig")


With the later of the two, you could even grep for results. You can also disable devices using ifconfig, but I'm not so sure about on a windows system. This isn't C/C++, but it's a start.
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 09:24PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month