Solved

programing

Posted on 2002-03-07
12
206 Views
Last Modified: 2013-11-13
Disabling a NIC
how to disable a nic interface by a small program written on any programing language
probably a small script or so
0
Comment
Question by:iliriyan
  • 7
  • 4
12 Comments
 

Author Comment

by:iliriyan
ID: 6846791
thanx
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6847466
Rather vague, doncha know? How's about:

Answer:  Call ShutDown
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6847472
(note also, platform dependencies involved)
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 22

Expert Comment

by:cookre
ID: 6849514
This can often be done at the hardware level, but that is NIC dependent, i.e., the method to disable will vary widely.

Doing it in software is OS dependent.  Even within the Windows family, the method of disabling varies.

Do you want to do this for a particular box or for whatever box the program is running on, regardless of NIC model and OS?
0
 

Author Comment

by:iliriyan
ID: 6850126
in a box where the program will shutdown and start the NIC
on OS windows.
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6851266
> in a box where the program will shutdown and start the NIC on OS windows.

This is generally not available where requirements involve heterogenous Windoze environments. Namely, before the Windows UI is sufficiently stable for user access, the stack (including NIC) also has to be stable, a networking prerequisite if you will. Thus, all the times peole experience messages such as "you must shutdown (or restart) computer to complete the process".  Even newer OS, where there are times that the messagebox does not appear, there are substantial networking needs that still require the reboot (not just a logoff) to complete the rebuilding process.

Depending on application need, this is possible, where several restrictions can be applied to requirements. But in general, not all that feasible. Also has many OS dependencies, so any desire for cross platform compatibility must head to back-burner.
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6851276
> "program will shutdown and start the NIC"
Answer:  Call ShutDown /Restart
0
 

Author Comment

by:iliriyan
ID: 6855871
does not works mate
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6861355
?
0
 
LVL 24

Accepted Solution

by:
SunBow earned 50 total points
ID: 6861381
Should work on common nic's any platform.
Only probs s/b if NIC runs separate intelligence independently.  You might check bios to disable loading Windows from the network.
0
 

Author Comment

by:iliriyan
ID: 6879155
not bad
i have don it
with one two three and go
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6880037
?                                      (thanx)
Good Fortune!                           :)
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Non-recursive backtracking, using a stack 1 126
Image decoding from Camera 3 85
Path to Python 9 118
sp_configure 'external scripts enabled', 1; 7 49
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now