+ Post New Thread
Results 1 to 7 of 7
Coding Thread, More Visual Basic Help in Coding and Web Development; I am making a little tool to make telephone support easier at the school. I am looking to put a ...
  1. #1

    Join Date
    Nov 2009
    Location
    Weymouth
    Posts
    37
    Thank Post
    1
    Thanked 3 Times in 3 Posts
    Rep Power
    10

    More Visual Basic Help

    I am making a little tool to make telephone support easier at the school.

    I am looking to put a little button in that does the wireless connection repair wizard. Does anyone know if this is possible?

    I have had a good google and I have not found anything useful yet.

    Thanks in advance.

    Oh I am using Visual Studio 2008 Express

  2. #2

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,498
    Thank Post
    1,456
    Thanked 1,201 Times in 814 Posts
    Rep Power
    712
    Couldn't you call the command line:
    Code:
    ipconfig /release
    ipconfig /renew
    achieves the same thing, doesn't it?

  3. #3

    Join Date
    Nov 2009
    Location
    Weymouth
    Posts
    37
    Thank Post
    1
    Thanked 3 Times in 3 Posts
    Rep Power
    10
    No I want something that disables the wireless card then enables it.

    I already have all the ipconfig commands to tag onto the end of it.

  4. #4

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,498
    Thank Post
    1,456
    Thanked 1,201 Times in 814 Posts
    Rep Power
    712
    Have you tried DevCon? It's a command line device manager, you should be able to just put it in the folder with your exe and call it from your code

    The DevCon command-line utility functions as an alternative to Device Manager

  5. #5

    Join Date
    Nov 2009
    Location
    Weymouth
    Posts
    37
    Thank Post
    1
    Thanked 3 Times in 3 Posts
    Rep Power
    10
    I have just had a look at the devcon thing and that seems really good.

    It will need to work on any wireless card in any machine... Do you happen to know how I can achieve that?

    Thanks

  6. #6

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,498
    Thank Post
    1,456
    Thanked 1,201 Times in 814 Posts
    Rep Power
    712
    You're going to struggle to achieve that without manually setting up parameters on each machine, but the follwing will restart all network devices on the local machine:

    Code:
    devcon restart =Net *

  7. #7

    Join Date
    Nov 2009
    Location
    Weymouth
    Posts
    37
    Thank Post
    1
    Thanked 3 Times in 3 Posts
    Rep Power
    10
    That works just great

    Thank you for your help. My little utility is going into BETA :P

SHARE:
+ Post New Thread

Similar Threads

  1. Visual Basic 6 Help
    By mgarland in forum Coding
    Replies: 7
    Last Post: 28th June 2010, 10:17 AM
  2. Visual Basic 2008 help
    By DSapseid in forum Coding
    Replies: 1
    Last Post: 24th June 2009, 11:03 AM
  3. Im New To Visual Basic 2008....HELP!!!!!
    By firerescue in forum Coding
    Replies: 2
    Last Post: 17th December 2008, 11:10 AM
  4. Visual Basic 6
    By Samson in forum Windows
    Replies: 4
    Last Post: 30th August 2007, 12:41 PM
  5. Visual basic 6
    By Halfmad in forum Windows
    Replies: 9
    Last Post: 11th June 2007, 02:57 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •