PDA

View Full Version : Enabling and Disabling a Lan network connection (All)



lamdacore
07-06-2005, 12:36 AM
hi! I am making a small program which helps people in my area to setup their internet setting and IP addresses by enabling the 'enableDHCP' key in the registry to obtain the IP address. However, when i run the program, it is necessary to re-enable the LAN network connection again. however, since the users of the program are not very computer literate, i prompt them to restart their computers to take effect.

This shows poor programming and it is necessary that my program be capable to enable the network connections without restarting the computer.

So any help will be appreciated

thanx

danielwalters6
08-09-2005, 07:22 AM
I'm not too brilliant on computers. (A Word of Warning)

I've actually in the last three weeks been creating more and more complicated macro's in simple programs like excel, isn't there a way of creating macro's in WINDOWS itself? Using visual basic or something?

(Alt + F11 in any office application)

Or does VB only work within the office suite?

Well it's a line of enquiry you might like to look at

Dan

iPods Rock! /images/forums/icons/cool.gif

Wanderer2
08-23-2005, 12:12 PM
I am thinking you should be able to script stop network services and start network services. Look under service for the percise service to stop and start.