Click here to Skip to main content
15,902,492 members
Home / Discussions / C#
   

C#

 
AnswerRe: date Conversion problem[Modified] Pin
Luc Pattyn28-Feb-07 4:55
sitebuilderLuc Pattyn28-Feb-07 4:55 
QuestionIO Exception for Full Capacity Pin
Ian Uy28-Feb-07 4:30
Ian Uy28-Feb-07 4:30 
AnswerRe: IO Exception for Full Capacity Pin
kubben28-Feb-07 4:54
kubben28-Feb-07 4:54 
GeneralRe: IO Exception for Full Capacity Pin
Ian Uy28-Feb-07 16:34
Ian Uy28-Feb-07 16:34 
GeneralRe: IO Exception for Full Capacity Pin
kubben1-Mar-07 1:10
kubben1-Mar-07 1:10 
QuestionHow to use Microsoft Access Database files in Pocket PC Project with C# Pin
myope_28-Feb-07 4:29
myope_28-Feb-07 4:29 
QuestionCAPICOM problem in .NET 2.0 Pin
Yevgeni Fr28-Feb-07 4:27
Yevgeni Fr28-Feb-07 4:27 
QuestionSystem.Management ????????? Pin
Saaaaz28-Feb-07 4:18
Saaaaz28-Feb-07 4:18 
I am trying to run application on remote pc by doing some thing like this:

ConnectionOptions objConnectionOptions = new ConnectionOptions();
objConnectionOptions.Impersonation = ImpersonationLevel.Impersonate;
objConnectionOptions.EnablePrivileges = true;
objConnectionOptions.Username = strUserName;
objConnectionOptions.Password = strPassword;
ManagementScope objManagementScope = new ManagementScope(@"\\remote-machine-name\ROOT\CIMV2", objConnectionOptions);
objManagementScope.Connect();

ManagementClass processClassFinal = new ManagementClass(objManagementScope, new ManagementPath("Win32_Process"), null);
ManagementBaseObject inParamsFinal = processClassFinal.GetMethodParameters("Create");
inParamsFinal["CommandLine"] = @"\\remote-machine-name\some-directory\someProgram.exe";

ManagementBaseObject outParamsFinal = processClassFinal.InvokeMethod("Create", inParamsFinal, null);


But for some reason it does not work and I don't know why???????


outParamsFinal["processId"] returns null, instead of a valid processId.

Is there any one who could help me in that..............

Thanks



Sarfraz

QuestionNeed Help URGENTLY Pin
Ahmed EL Gendy28-Feb-07 4:02
Ahmed EL Gendy28-Feb-07 4:02 
AnswerRe: Need Help URGENTLY Pin
HenrikHarmer28-Feb-07 5:14
HenrikHarmer28-Feb-07 5:14 
Questionavailable port in .net remoting Pin
ctlqt1228-Feb-07 4:01
ctlqt1228-Feb-07 4:01 
Questionrandom Pin
md_refay28-Feb-07 3:56
md_refay28-Feb-07 3:56 
AnswerRe: random Pin
Stefan Troschuetz28-Feb-07 4:40
Stefan Troschuetz28-Feb-07 4:40 
AnswerRe: random Pin
Ennis Ray Lynch, Jr.28-Feb-07 4:44
Ennis Ray Lynch, Jr.28-Feb-07 4:44 
Questionrandom number(emerganacy case) Pin
md_refay28-Feb-07 3:47
md_refay28-Feb-07 3:47 
AnswerRe: random number(emerganacy case) Pin
Dominik Reichl28-Feb-07 4:37
Dominik Reichl28-Feb-07 4:37 
AnswerRe: random number(emerganacy case) Pin
Stefan Troschuetz28-Feb-07 4:40
Stefan Troschuetz28-Feb-07 4:40 
QuestionNotepad Save menu handler Pin
harshakamat28-Feb-07 3:30
harshakamat28-Feb-07 3:30 
AnswerRe: Notepad Save menu handler Pin
Ed.Poore28-Feb-07 6:26
Ed.Poore28-Feb-07 6:26 
GeneralRe: Notepad Save menu handler Pin
harshakamat1-Mar-07 2:23
harshakamat1-Mar-07 2:23 
GeneralRe: Notepad Save menu handler Pin
Ed.Poore1-Mar-07 12:32
Ed.Poore1-Mar-07 12:32 
QuestionPass variables between windos forms.. Pin
Hussam Fattahi28-Feb-07 3:28
Hussam Fattahi28-Feb-07 3:28 
AnswerRe: Pass variables between windos forms.. Pin
Colin Angus Mackay28-Feb-07 4:05
Colin Angus Mackay28-Feb-07 4:05 
AnswerRe: Pass variables between windos forms.. Pin
Muammar©23-May-07 0:40
Muammar©23-May-07 0:40 
Questionvjslib missing Pin
Gareth H28-Feb-07 3:26
Gareth H28-Feb-07 3:26 

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.