Click here to Skip to main content
15,889,595 members
Home / Discussions / C#
   

C#

 
AnswerRe: Beginner c# question Pin
PIEBALDconsult14-May-11 18:52
mvePIEBALDconsult14-May-11 18:52 
GeneralRe: Beginner c# question Pin
jschell16-May-11 8:37
jschell16-May-11 8:37 
AnswerRe: Beginner c# question Pin
jschell16-May-11 8:39
jschell16-May-11 8:39 
Questionhow to disable and enable network access with simple c# code Pin
MohammedMahmoud14-May-11 10:41
MohammedMahmoud14-May-11 10:41 
AnswerRe: how to disable and enable network access with simple c# code Pin
jschell14-May-11 11:31
jschell14-May-11 11:31 
GeneralRe: how to disable and enable network access with simple c# code Pin
MohammedMahmoud14-May-11 11:44
MohammedMahmoud14-May-11 11:44 
GeneralRe: how to disable and enable network access with simple c# code Pin
jschell16-May-11 8:29
jschell16-May-11 8:29 
AnswerRe: how to disable and enable network access with simple c# code Pin
Luc Pattyn14-May-11 12:11
sitebuilderLuc Pattyn14-May-11 12:11 
I don't know the details, and they might vary with your operating system and PC configuration, however I think there are two ways to get that.

1.
using WMI, not sure which classes, and probably not the easy way.

2.
through a "DOS command". First figure out which command line would do what you want when typed into a DOS Console (a "Command Prompt"). Then have your app execute that DOS command, which for "dir args" would look like:
Process.Start("cmd.exe /C dir args");


HTH
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: how to disable and enable network access with simple c# code Pin
dybs17-May-11 16:11
dybs17-May-11 16:11 
AnswerRe: how to disable and enable network access with simple c# code Pin
Richard MacCutchan14-May-11 21:37
mveRichard MacCutchan14-May-11 21:37 
QuestionHow can my hosted asp.net website access my local machine database Pin
akosidandan14-May-11 2:15
akosidandan14-May-11 2:15 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Luc Pattyn14-May-11 2:45
sitebuilderLuc Pattyn14-May-11 2:45 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan14-May-11 3:28
akosidandan14-May-11 3:28 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Luc Pattyn14-May-11 3:39
sitebuilderLuc Pattyn14-May-11 3:39 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan15-May-11 2:34
akosidandan15-May-11 2:34 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Luc Pattyn15-May-11 3:08
sitebuilderLuc Pattyn15-May-11 3:08 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan15-May-11 4:32
akosidandan15-May-11 4:32 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Luc Pattyn15-May-11 4:38
sitebuilderLuc Pattyn15-May-11 4:38 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan15-May-11 4:57
akosidandan15-May-11 4:57 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Expert Coming14-May-11 5:16
Expert Coming14-May-11 5:16 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan15-May-11 2:45
akosidandan15-May-11 2:45 
Questionhow to switch off the parallel port Pin
aeman14-May-11 1:18
aeman14-May-11 1:18 
AnswerRe: how to switch off the parallel port Pin
OriginalGriff14-May-11 1:30
mveOriginalGriff14-May-11 1:30 
AnswerRe: how to switch off the parallel port Pin
OriginalGriff14-May-11 1:35
mveOriginalGriff14-May-11 1:35 
GeneralRe: how to switch off the parallel port Pin
aeman14-May-11 3:47
aeman14-May-11 3:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.