Click here to Skip to main content
15,886,781 members
Home / Discussions / C#
   

C#

 
QuestionWhich is the best way to shutdown, reboot, or logoff from the system in C# (.NEt 4.0)? Pin
Erik14-Jan-11 0:16
Erik14-Jan-11 0:16 
AnswerRe: Which is the best way to shutdown, reboot, or logoff from the system in C# (.NEt 4.0)? Pin
Luc Pattyn14-Jan-11 0:33
sitebuilderLuc Pattyn14-Jan-11 0:33 
AnswerRe: Which is the best way to shutdown, reboot, or logoff from the system in C# (.NEt 4.0)? Pin
Ravi Sant14-Jan-11 1:50
Ravi Sant14-Jan-11 1:50 
GeneralRe: Which is the best way to shutdown, reboot, or logoff from the system in C# (.NEt 4.0)? Pin
Dave Kreskowiak14-Jan-11 4:01
mveDave Kreskowiak14-Jan-11 4:01 
GeneralRe: Which is the best way to shutdown, reboot, or logoff from the system in C# (.NEt 4.0)? Pin
jschell14-Jan-11 9:58
jschell14-Jan-11 9:58 
AnswerRe: Which is the best way to shutdown, reboot, or logoff from the system in C# (.NEt 4.0)? Pin
Dave Kreskowiak14-Jan-11 4:05
mveDave Kreskowiak14-Jan-11 4:05 
QuestionGetting network drives names issue Pin
Priya Prk13-Jan-11 21:34
Priya Prk13-Jan-11 21:34 
AnswerRe: Getting network drives names issue Pin
RaviRanjanKr13-Jan-11 22:24
professionalRaviRanjanKr13-Jan-11 22:24 
Priya Prk wrote:
In win xp this works fine, but in windows7 i can only see the local drives.

how that is possible to see the local drives after using given code. It will display only when you will use DriveType.Fixed [as I know]

Check your code it only display Network Drives Name not LocalDrives Name because Response.Write(d.Name)
only works and print the Name of Drives when DriveType will equals to DriveType.Network

Take a look you've applied condition.
Priya Prk wrote:
if (d.DriveType == DriveType.Network)
{
Response.Write(d.Name);
}


modified on Friday, January 14, 2011 5:19 AM

GeneralRe: Getting network drives names issue Pin
OriginalGriff13-Jan-11 22:41
mveOriginalGriff13-Jan-11 22:41 
GeneralRe: Getting network drives names issue Pin
Priya Prk13-Jan-11 23:07
Priya Prk13-Jan-11 23:07 
AnswerRe: Getting network drives names issue Pin
Goutam Patra13-Jan-11 23:04
professionalGoutam Patra13-Jan-11 23:04 
GeneralRe: Getting network drives names issue Pin
Priya Prk13-Jan-11 23:09
Priya Prk13-Jan-11 23:09 
GeneralRe: Getting network drives names issue Pin
RaviRanjanKr13-Jan-11 23:14
professionalRaviRanjanKr13-Jan-11 23:14 
GeneralRe: Getting network drives names issue Pin
Goutam Patra13-Jan-11 23:25
professionalGoutam Patra13-Jan-11 23:25 
AnswerRe: Getting network drives names issue Pin
Pete O'Hanlon13-Jan-11 23:21
mvePete O'Hanlon13-Jan-11 23:21 
GeneralRe: Getting network drives names issue Pin
Priya Prk13-Jan-11 23:32
Priya Prk13-Jan-11 23:32 
AnswerRe: Getting network drives names issue Pin
Luc Pattyn14-Jan-11 1:41
sitebuilderLuc Pattyn14-Jan-11 1:41 
GeneralRe: Getting network drives names issue Pin
Priya Prk14-Jan-11 2:01
Priya Prk14-Jan-11 2:01 
GeneralRe: Getting network drives names issue Pin
Dave Kreskowiak14-Jan-11 4:00
mveDave Kreskowiak14-Jan-11 4:00 
AnswerRe: Getting network drives names issue Pin
jschell14-Jan-11 10:04
jschell14-Jan-11 10:04 
QuestionTreeView SelectedNode[0] Pin
S078413-Jan-11 21:14
S078413-Jan-11 21:14 
AnswerRe: TreeView SelectedNode[0] Pin
Mycroft Holmes13-Jan-11 21:27
professionalMycroft Holmes13-Jan-11 21:27 
AnswerRe: TreeView SelectedNode[0] Pin
Richard MacCutchan13-Jan-11 22:08
mveRichard MacCutchan13-Jan-11 22:08 
AnswerRe: TreeView SelectedNode[0] Pin
RaviRanjanKr16-Jan-11 2:28
professionalRaviRanjanKr16-Jan-11 2:28 
GeneralRe: TreeView SelectedNode[0] Pin
S078416-Jan-11 19:53
S078416-Jan-11 19:53 

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.