Click here to Skip to main content
15,894,907 members
Home / Discussions / C#
   

C#

 
AnswerRe: Can we use pointers or similar in C# ? Pin
Christian Graus5-Jun-09 0:12
protectorChristian Graus5-Jun-09 0:12 
QuestionOutlook 2003 VSTO Addin deployment on Windows Vista - Registry and other issues - How to Pin
Chaitanya Joshi4-Jun-09 23:28
Chaitanya Joshi4-Jun-09 23:28 
AnswerRe: Outlook 2003 VSTO Addin deployment on Windows Vista - Registry and other issues - How to Pin
led mike5-Jun-09 4:37
led mike5-Jun-09 4:37 
GeneralRe: Outlook 2003 VSTO Addin deployment on Windows Vista - Registry and other issues - How to Pin
Chaitanya Joshi7-Jun-09 23:26
Chaitanya Joshi7-Jun-09 23:26 
GeneralRe: Outlook 2003 VSTO Addin deployment on Windows Vista - Registry and other issues - How to Pin
led mike8-Jun-09 5:37
led mike8-Jun-09 5:37 
QuestionBatch Insert Problem with SqlBulkCopy. Pin
hdv2124-Jun-09 22:33
hdv2124-Jun-09 22:33 
AnswerRe: Batch Insert Problem with SqlBulkCopy. Pin
Manas Bhardwaj4-Jun-09 22:41
professionalManas Bhardwaj4-Jun-09 22:41 
GeneralRe: Batch Insert Problem with SqlBulkCopy. Pin
hdv2124-Jun-09 23:45
hdv2124-Jun-09 23:45 
GeneralRe: Batch Insert Problem with SqlBulkCopy. Pin
Manas Bhardwaj4-Jun-09 23:49
professionalManas Bhardwaj4-Jun-09 23:49 
GeneralRe: Batch Insert Problem with SqlBulkCopy. Pin
hdv2125-Jun-09 0:41
hdv2125-Jun-09 0:41 
AnswerRe: Batch Insert Problem with SqlBulkCopy. Pin
I Believe In GOD5-Jun-09 2:04
I Believe In GOD5-Jun-09 2:04 
QuestionHow to install Microsoft.mshtml.dll in GAC Pin
svt gdwl4-Jun-09 22:28
svt gdwl4-Jun-09 22:28 
AnswerRe: How to install Microsoft.mshtml.dll in GAC Pin
Christian Graus4-Jun-09 23:05
protectorChristian Graus4-Jun-09 23:05 
QuestionWMI Pin
arkiboys4-Jun-09 22:21
arkiboys4-Jun-09 22:21 
Hi,
I have create a simple vbscript called vbscriptSample.vbs
When you double click it, you see the message Hello.
This script is saved in the local machine i.e. c:\work\vbscriptSample.vbs
I can call this script using:

System.Diagnostics.Process.Start(@"c:\work\vbscriptsample.vbs");

Question:
I am developing a .net application to trigger this local script but to run it against a network machine i.e. MachineB
So when you run it from my local machine, then the message Hello appears on the MachineB
I believe this is to do with WMI
So, this is what I have. It does not give an error but the message hello does not appear.

try
{
ManagementPath p = new ManagementPath(@"\\MachineB\root\cimv2:Win32_process");
ManagementClass m = new ManagementClass(p);

m.InvokeMethod("Create", new object[] {@"\\MachineB\c$\work\vbscriptsample.vbs"});
}
catch (ManagementException err)
{
MessageBox.Show("An error occurred while trying to execute the WMI method: " + err.Message);
}
catch (UnauthorizedAccessException unauthorizedErr)
{
MessageBox.Show("Connection error (user name or password might be incorrect): " + unauthorizedErr.Message);
}

Any thoughts please?

Thanks
AnswerRe: WMI Pin
Pete O'Hanlon4-Jun-09 23:05
mvePete O'Hanlon4-Jun-09 23:05 
GeneralRe: WMI Pin
arkiboys4-Jun-09 23:49
arkiboys4-Jun-09 23:49 
GeneralRe: WMI Pin
arkiboys5-Jun-09 0:31
arkiboys5-Jun-09 0:31 
QuestionUser Control Pin
User 62554644-Jun-09 21:14
User 62554644-Jun-09 21:14 
AnswerRe: User Control Pin
Christian Graus4-Jun-09 21:37
protectorChristian Graus4-Jun-09 21:37 
GeneralRe: User Control Pin
User 62554645-Jun-09 19:35
User 62554645-Jun-09 19:35 
Questionnon selectable cells/columns in datagridview Pin
Otex4-Jun-09 21:01
Otex4-Jun-09 21:01 
AnswerRe: non selectable cells/columns in datagridview Pin
dan!sh 4-Jun-09 23:12
professional dan!sh 4-Jun-09 23:12 
QuestiondataGrid SelectedIndexChanged Method not available in Compact Framework Pin
Paulo Mitchell4-Jun-09 20:27
Paulo Mitchell4-Jun-09 20:27 
AnswerRe: dataGrid SelectedIndexChanged Method not available in Compact Framework Pin
MickCurley5-Jun-09 0:16
MickCurley5-Jun-09 0:16 
GeneralRe: dataGrid SelectedIndexChanged Method not available in Compact Framework Pin
Paulo Mitchell5-Jun-09 3:18
Paulo Mitchell5-Jun-09 3:18 

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.