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

C#

 
Questionhow can i start a shell and execute a command and capture output using ganymed-ssh2 c# library Pin
superselector5-Sep-13 1:23
superselector5-Sep-13 1:23 
AnswerRe: how can i start a shell and execute a command and capture output using ganymed-ssh2 c# library Pin
Dave Kreskowiak5-Sep-13 3:05
mveDave Kreskowiak5-Sep-13 3:05 
AnswerRe: how can i start a shell and execute a command and capture output using ganymed-ssh2 c# library Pin
TnTinMn5-Sep-13 3:33
TnTinMn5-Sep-13 3:33 
Questionc# - Windows Services: accessing a network resource Pin
Jeffrey Jefferson4-Sep-13 20:28
Jeffrey Jefferson4-Sep-13 20:28 
AnswerRe: c# - Windows Services: accessing a network resource Pin
Bernhard Hiller4-Sep-13 20:50
Bernhard Hiller4-Sep-13 20:50 
AnswerRe: c# - Windows Services: accessing a network resource Pin
AmitGajjar4-Sep-13 20:56
professionalAmitGajjar4-Sep-13 20:56 
AnswerRe: c# - Windows Services: accessing a network resource Pin
jschell5-Sep-13 9:27
jschell5-Sep-13 9:27 
AnswerRe: c# - Windows Services: accessing a network resource Pin
Jason Gleim6-Sep-13 5:19
professionalJason Gleim6-Sep-13 5:19 
You don't mention how you map the drive and on what OS it is. If you are mapping the drive in a login script on Vista or higher, you have to elevate the script to admin level to do the mapping. The problem is that it will not appear in user space even though it will show up in windows explorer. If your service is running under a user account, it will by default run in the limited user space and will not have access to mapped drives in the admin space. This is an infuriating implementation because Windows handles these issues for the console user but not for processes running as that user.

In this case, the solution is linked connections. There is a registry key you need to add called EnableLinkedConnections. I don't remember the path right now but Google will tell you. If you are mapping drives in a login script and running your service under a user account, you need the linked connections enabled on Vista or Win 7/8. If your login script is a powershell script, you can even set the linked connections from the script provided it is signed and you allow remote scripts to execute.
AnswerRe: c# - Windows Services: accessing a network resource Pin
Jeffrey Jefferson7-Sep-13 0:46
Jeffrey Jefferson7-Sep-13 0:46 
QuestionOne form control displayed in other Pin
Rohini Shirke4-Sep-13 19:05
Rohini Shirke4-Sep-13 19:05 
GeneralRe: One form control displayed in other Pin
Richard MacCutchan4-Sep-13 21:08
mveRichard MacCutchan4-Sep-13 21:08 
AnswerRe: One form control displayed in other Pin
RK-Developer5-Sep-13 0:14
RK-Developer5-Sep-13 0:14 
AnswerRe: One form control displayed in other Pin
BillWoodruff5-Sep-13 18:06
professionalBillWoodruff5-Sep-13 18:06 
GeneralRe: One form control displayed in other Pin
Rohini Shirke6-Sep-13 18:31
Rohini Shirke6-Sep-13 18:31 
QuestionC# coding style question Pin
Gary Wheeler4-Sep-13 9:54
Gary Wheeler4-Sep-13 9:54 
AnswerRe: C# coding style question Pin
Richard Deeming4-Sep-13 10:32
mveRichard Deeming4-Sep-13 10:32 
AnswerRe: C# coding style question Pin
Eddy Vluggen4-Sep-13 10:41
professionalEddy Vluggen4-Sep-13 10:41 
AnswerRe: C# coding style question Pin
Espen Harlinn4-Sep-13 12:06
professionalEspen Harlinn4-Sep-13 12:06 
GeneralRe: C# coding style question Pin
Gary Wheeler5-Sep-13 1:53
Gary Wheeler5-Sep-13 1:53 
GeneralRe: C# coding style question Pin
Espen Harlinn5-Sep-13 1:56
professionalEspen Harlinn5-Sep-13 1:56 
GeneralRe: C# coding style question Pin
Gary Wheeler5-Sep-13 2:07
Gary Wheeler5-Sep-13 2:07 
GeneralRe: C# coding style question Pin
Espen Harlinn5-Sep-13 2:22
professionalEspen Harlinn5-Sep-13 2:22 
AnswerRe: C# coding style question Pin
jschell4-Sep-13 12:08
jschell4-Sep-13 12:08 
GeneralRe: C# coding style question Pin
Gary Wheeler5-Sep-13 1:57
Gary Wheeler5-Sep-13 1:57 
GeneralRe: C# coding style question Pin
PIEBALDconsult5-Sep-13 3:15
mvePIEBALDconsult5-Sep-13 3:15 

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.