Click here to Skip to main content
12,957,526 members (59,753 online)
   

C#

 
GeneralRe: Event/Delegate for progress bar issue Pin
MichCl7-May-13 3:55
memberMichCl7-May-13 3:55 
GeneralRe: Event/Delegate for progress bar issue Pin
Eddy Vluggen7-May-13 9:04
mvpEddy Vluggen7-May-13 9:04 
GeneralRe: Event/Delegate for progress bar issue Pin
MichCl3-May-13 8:49
memberMichCl3-May-13 8:49 
QuestionHow to view the images from folder one by one Pin
Member 100242502-May-13 20:04
memberMember 100242502-May-13 20:04 
AnswerRe: How to view the images from folder one by one Pin
OriginalGriff2-May-13 21:34
mvpOriginalGriff2-May-13 21:34 
GeneralRe: How to view the images from folder one by one Pin
Member 100242503-May-13 2:13
memberMember 100242503-May-13 2:13 
AnswerRe: How to view the images from folder one by one Pin
abdussalam1433-May-13 3:15
professionalabdussalam1433-May-13 3:15 
QuestionCan't run SC remotely to config service Pin
SledgeHammer012-May-13 13:43
memberSledgeHammer012-May-13 13:43 
code is simple:

System.Diagnostics.Process.Start("sc", "\\\\" + strMachine + " config \"<the service name>\" start= demand");

not getting any exception or anything. My code is impersonating a domain user that has admin rights on that box. I know the impersonation code is working because I use it elsewhere.

Also, if I do a runas command prompt and run the command line manually, it successfully works, so I know the username and password are correct. Just can't do it from C#.

I can't see if its spitting out any errors as the dos box flashes too fast.

Any ideas?
AnswerRe: Can't run SC remotely to config service Pin
Dave Kreskowiak2-May-13 15:42
mvpDave Kreskowiak2-May-13 15:42 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer012-May-13 17:39
memberSledgeHammer012-May-13 17:39 
GeneralRe: Can't run SC remotely to config service Pin
Dave Kreskowiak3-May-13 1:21
mvpDave Kreskowiak3-May-13 1:21 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 4:08
memberSledgeHammer013-May-13 4:08 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 7:21
memberSledgeHammer013-May-13 7:21 
GeneralRe: Can't run SC remotely to config service Pin
Dave Kreskowiak3-May-13 7:52
mvpDave Kreskowiak3-May-13 7:52 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 8:04
memberSledgeHammer013-May-13 8:04 
GeneralRe: Can't run SC remotely to config service Pin
Dave Kreskowiak3-May-13 8:26
mvpDave Kreskowiak3-May-13 8:26 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 9:40
memberSledgeHammer013-May-13 9:40 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 11:10
memberSledgeHammer013-May-13 11:10 
AnswerRe: Can't run SC remotely to config service Pin
Richard MacCutchan2-May-13 21:37
mvpRichard MacCutchan2-May-13 21:37 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 4:02
memberSledgeHammer013-May-13 4:02 
GeneralRe: Can't run SC remotely to config service Pin
Richard MacCutchan3-May-13 4:22
mvpRichard MacCutchan3-May-13 4:22 
AnswerRe: Can't run SC remotely to config service Pin
Alan N2-May-13 22:50
memberAlan N2-May-13 22:50 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 4:08
memberSledgeHammer013-May-13 4:08 
GeneralRe: Can't run SC remotely to config service Pin
Alan N22-May-13 4:33
memberAlan N22-May-13 4:33 
QuestionRestoring Initial UI State Pin
Matt U.2-May-13 2:53
memberMatt U.2-May-13 2: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.


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 30 May 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid