Click here to Skip to main content
12,350,605 members (23,910 online)
   

C#

 
GeneralRe: Event/Delegate for progress bar issue Pin
Eddy Vluggen4-May-13 0:41
mvpEddy Vluggen4-May-13 0:41 
GeneralRe: Event/Delegate for progress bar issue Pin
MichCl6-May-13 3:40
memberMichCl6-May-13 3:40 
GeneralRe: Event/Delegate for progress bar issue Pin
Eddy Vluggen6-May-13 7:52
mvpEddy Vluggen6-May-13 7:52 
GeneralRe: Event/Delegate for progress bar issue Pin
MichCl6-May-13 9:19
memberMichCl6-May-13 9:19 
GeneralRe: Event/Delegate for progress bar issue Pin
MichCl7-May-13 2:09
memberMichCl7-May-13 2:09 
GeneralRe: Event/Delegate for progress bar issue Pin
Eddy Vluggen7-May-13 3:16
mvpEddy Vluggen7-May-13 3:16 
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 
AnswerRe: Restoring Initial UI State Pin
Alan Balkany2-May-13 5:19
memberAlan Balkany2-May-13 5:19 
GeneralRe: Restoring Initial UI State Pin
Matt U.2-May-13 5:39
memberMatt U.2-May-13 5:39 
GeneralRe: Restoring Initial UI State Pin
Jasmine25012-May-13 7:10
memberJasmine25012-May-13 7:10 
GeneralRe: Restoring Initial UI State Pin
Matt U.2-May-13 7:15
memberMatt U.2-May-13 7:15 
GeneralRe: Restoring Initial UI State Pin
Dave Kreskowiak2-May-13 11:06
mvpDave Kreskowiak2-May-13 11:06 
GeneralRe: Restoring Initial UI State Pin
Jasmine25012-May-13 12:36
memberJasmine25012-May-13 12:36 
GeneralRe: Restoring Initial UI State Pin
Dave Kreskowiak2-May-13 15:35
mvpDave Kreskowiak2-May-13 15:35 
GeneralRe: Restoring Initial UI State Pin
Jasmine25013-May-13 5:08
memberJasmine25013-May-13 5:08 
GeneralRe: Restoring Initial UI State Pin
Eddy Vluggen2-May-13 12:21
mvpEddy Vluggen2-May-13 12:21 
GeneralRe: Restoring Initial UI State Pin
Matt U.3-May-13 1:54
memberMatt U.3-May-13 1:54 
AnswerRe: Restoring Initial UI State Pin
Jasmine25012-May-13 7:04
memberJasmine25012-May-13 7:04 
AnswerRe: Restoring Initial UI State Pin
Eddy Vluggen2-May-13 11:18
mvpEddy Vluggen2-May-13 11:18 
GeneralRe: Restoring Initial UI State Pin
Jasmine25012-May-13 12:35
memberJasmine25012-May-13 12:35 
GeneralRe: Restoring Initial UI State Pin
Eddy Vluggen3-May-13 1:35
mvpEddy Vluggen3-May-13 1:35 
AnswerRe: Restoring Initial UI State Pin
Clifford Nelson2-May-13 17:12
memberClifford Nelson2-May-13 17:12 
QuestionAttendance System Pin
behrouz shamlo2-May-13 2:43
memberbehrouz shamlo2-May-13 2:43 
AnswerRe: Attendance System Pin
OriginalGriff2-May-13 4:44
mvpOriginalGriff2-May-13 4:44 
AnswerRe: Attendance System Pin
Eddy Vluggen2-May-13 5:06
mvpEddy Vluggen2-May-13 5:06 
AnswerRe: Attendance System Pin
Abhinav S2-May-13 6:09
mvpAbhinav S2-May-13 6:09 

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.160621.1 | Last Updated 26 Jun 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid