"Crios" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a LAN connection called let's say UPC (automatic IP and DNS) that I
>want sometimes to disable (for a certain period).
>
> Instead of using Ctrl Panel/... I would like to do this with a command
> script file (.cmd) file placed on my desktop.
>
> Probably is something with netsh, but this is just a guess.
>
>
> Thanx,
> Crios
>
You can disable your network adapter with this command:
devcon disable {NameOfNetworkAdapter}
To find the name of your network adapter, type these commands:
devcon hwids "*" > c:\devcon.txt
notepad c:\devcon.txt
You can download devcon.exe from here:
http://download.microsoft.com/downlo...240/devcon.exe