Click here to Skip to main content
14,767,956 members
Home » Discussions » C#
   

C#

 
QuestionAdd String attrribute to File Pin
hirenkshah15-Jun-09 3:37
Memberhirenkshah15-Jun-09 3:37 
AnswerRe: Add String attrribute to File Pin
Nagy Vilmos15-Jun-09 3:44
professionalNagy Vilmos15-Jun-09 3:44 
AnswerRe: Add String attrribute to File Pin
OriginalGriff15-Jun-09 4:20
mveOriginalGriff15-Jun-09 4:20 
QuestionIs local administrator password is blank or not Pin
priyanka_jns15-Jun-09 3:03
Memberpriyanka_jns15-Jun-09 3:03 
AnswerRe: Is local administrator password is blank or not Pin
Simon P Stevens15-Jun-09 6:53
MemberSimon P Stevens15-Jun-09 6:53 
Questionexecute script Pin
arkiboys15-Jun-09 1:24
Memberarkiboys15-Jun-09 1:24 
AnswerRe: execute script Pin
priyanka_jns15-Jun-09 3:08
Memberpriyanka_jns15-Jun-09 3:08 
GeneralRe: execute script Pin
arkiboys15-Jun-09 3:28
Memberarkiboys15-Jun-09 3:28 
Hi,
This is what I have now but I am not sure how to tell the code to use the vbscript i.e. Wscript.echo "hello"
Any thoughts please?
Thanks

System.Management.ManagementOperationObserver observer = new System.Management.ManagementOperationObserver();
System.Management.ConnectionOptions conn = new System.Management.ConnectionOptions();

conn.Impersonation = ImpersonationLevel.Impersonate;
conn.EnablePrivileges = true;
conn.Authentication = AuthenticationLevel.Default;
System.Management.ManagementScope ms = new System.Management.ManagementScope(@"\\" + txtTargetMachine.Text + @"\root\cimv2", conn);

ms.Connect();

System.Management.ManagementPath path = new System.Management.ManagementPath("Win32_Process");

ObjectGetOptions objectGetOptions = new ObjectGetOptions();

ManagementClass processClass = null;

processClass = new ManagementClass(ms, path, objectGetOptions);

ManagementBaseObject inParams = processClass.GetMethodParameters("Create");

ManagementBaseObject outParams = processClass.InvokeMethod("Create", inParams, null);

string returnValue = outParams["returnValue"] == null ? string.Empty : outParams["returnValue"].ToString();
GeneralRe: execute script Pin
Nagy Vilmos15-Jun-09 3:56
professionalNagy Vilmos15-Jun-09 3:56 
GeneralRe: execute script Pin
arkiboys15-Jun-09 4:38
Memberarkiboys15-Jun-09 4:38 
GeneralRe: execute script Pin
Nagy Vilmos15-Jun-09 4:55
professionalNagy Vilmos15-Jun-09 4:55 
GeneralRe: execute script Pin
arkiboys15-Jun-09 21:08
Memberarkiboys15-Jun-09 21:08 
Questionhow to clear string memory from heap without using GC Pin
rajeshsha1815-Jun-09 1:02
Memberrajeshsha1815-Jun-09 1:02 
AnswerRe: how to clear string memory from heap without using GC Pin
Pete O'Hanlon15-Jun-09 1:08
mvePete O'Hanlon15-Jun-09 1:08 
AnswerRe: how to clear string memory from heap without using GC Pin
Rob Philpott15-Jun-09 1:48
MemberRob Philpott15-Jun-09 1:48 
AnswerRe: how to clear string memory from heap without using GC Pin
Simon P Stevens15-Jun-09 6:59
MemberSimon P Stevens15-Jun-09 6:59 
Questionword like editor Pin
Mogaambo15-Jun-09 0:53
MemberMogaambo15-Jun-09 0:53 
AnswerRe: word like editor Pin
Nagy Vilmos15-Jun-09 3:08
professionalNagy Vilmos15-Jun-09 3:08 
GeneralRe: word like editor Pin
Mogaambo15-Jun-09 4:15
MemberMogaambo15-Jun-09 4:15 
GeneralRe: word like editor Pin
Pete O'Hanlon15-Jun-09 4:22
mvePete O'Hanlon15-Jun-09 4:22 
GeneralRe: word like editor Pin
Nagy Vilmos15-Jun-09 4:26
professionalNagy Vilmos15-Jun-09 4:26 
AnswerRe: word like editor Pin
K030616-Jun-09 1:35
MemberK030616-Jun-09 1:35 
Questionabout Silverlight 3 Pin
Seraph_summer15-Jun-09 0:50
MemberSeraph_summer15-Jun-09 0:50 
AnswerRe: about Silverlight 3 Pin
Henry Minute15-Jun-09 1:00
MemberHenry Minute15-Jun-09 1:00 
AnswerRe: about Silverlight 3 Pin
Pete O'Hanlon15-Jun-09 1:02
mvePete O'Hanlon15-Jun-09 1:02 

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.