Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
GeneralRe: Event/Delegate for progress bar issue Pin
Eddy Vluggen6-May-13 7:52
professionalEddy Vluggen6-May-13 7:52 
GeneralRe: Event/Delegate for progress bar issue Pin
MichCl6-May-13 9:19
MichCl6-May-13 9:19 
GeneralRe: Event/Delegate for progress bar issue Pin
MichCl7-May-13 2:09
MichCl7-May-13 2:09 
GeneralRe: Event/Delegate for progress bar issue Pin
Eddy Vluggen7-May-13 3:16
professionalEddy Vluggen7-May-13 3:16 
GeneralRe: Event/Delegate for progress bar issue Pin
MichCl7-May-13 3:55
MichCl7-May-13 3:55 
GeneralRe: Event/Delegate for progress bar issue Pin
Eddy Vluggen7-May-13 9:04
professionalEddy Vluggen7-May-13 9:04 
GeneralRe: Event/Delegate for progress bar issue Pin
MichCl3-May-13 8:49
MichCl3-May-13 8:49 
QuestionHow to view the images from folder one by one Pin
9,937,550 members2-May-13 20:04
professional9,937,550 members2-May-13 20:04 
AnswerRe: How to view the images from folder one by one Pin
OriginalGriff2-May-13 21:34
mveOriginalGriff2-May-13 21:34 
GeneralRe: How to view the images from folder one by one Pin
9,937,550 members3-May-13 2:13
professional9,937,550 members3-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
SledgeHammer012-May-13 13:43 
AnswerRe: Can't run SC remotely to config service Pin
Dave Kreskowiak2-May-13 15:42
mveDave Kreskowiak2-May-13 15:42 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer012-May-13 17:39
SledgeHammer012-May-13 17:39 
GeneralRe: Can't run SC remotely to config service Pin
Dave Kreskowiak3-May-13 1:21
mveDave Kreskowiak3-May-13 1:21 
SledgeHammer01 wrote:
I've done that and its EXACTLY what I ran under the runas command


Seriously?? "<the service name>"?? That's not exactly what you're running at the command line...

If you're getting the black CMD window to show up and then disappear, it means that you're:

1) Launching the command as a user that doesn't have permissions to execute the SC command on the target machine.

2) The service name isn't correct.

3) Something else in the command line isn't correct.


To check to see who the command line is running as, change the Start call to launch .Start("CMD", "/K WHOAMI")

After you've verified who the command is running as, you can alter your command line to launch the SC command and have to command prompt stick around: .Start("CMD", "/K <your entire SC command line here>")

Oh, remember what I said about building the command line in a seperate variable?? This is where is comes in handy...

GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 4:08
SledgeHammer013-May-13 4:08 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 7:21
SledgeHammer013-May-13 7:21 
GeneralRe: Can't run SC remotely to config service Pin
Dave Kreskowiak3-May-13 7:52
mveDave Kreskowiak3-May-13 7:52 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 8:04
SledgeHammer013-May-13 8:04 
GeneralRe: Can't run SC remotely to config service Pin
Dave Kreskowiak3-May-13 8:26
mveDave Kreskowiak3-May-13 8:26 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 9:40
SledgeHammer013-May-13 9:40 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 11:10
SledgeHammer013-May-13 11:10 
AnswerRe: Can't run SC remotely to config service Pin
Richard MacCutchan2-May-13 21:37
mveRichard MacCutchan2-May-13 21:37 
GeneralRe: Can't run SC remotely to config service Pin
SledgeHammer013-May-13 4:02
SledgeHammer013-May-13 4:02 
GeneralRe: Can't run SC remotely to config service Pin
Richard MacCutchan3-May-13 4:22
mveRichard MacCutchan3-May-13 4:22 

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.