Click here to Skip to main content
15,884,388 members
Home / Discussions / C#
   

C#

 
AnswerRe: vsto problem Pin
Randor 12-Jun-09 9:08
professional Randor 12-Jun-09 9:08 
GeneralTimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 4:04
hairy_hats12-Jun-09 4:04 
GeneralRe: TimeSpan equivalent for the working week Pin
Luc Pattyn12-Jun-09 4:11
sitebuilderLuc Pattyn12-Jun-09 4:11 
GeneralRe: TimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 4:23
hairy_hats12-Jun-09 4:23 
GeneralRe: TimeSpan equivalent for the working week Pin
Luc Pattyn12-Jun-09 4:27
sitebuilderLuc Pattyn12-Jun-09 4:27 
GeneralRe: TimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 4:49
hairy_hats12-Jun-09 4:49 
QuestionMCE Remote Controller Pin
ryan11712-Jun-09 2:46
ryan11712-Jun-09 2:46 
QuestionWMI Pin
arkiboys12-Jun-09 2:36
arkiboys12-Jun-09 2:36 
Hi,
The code below is a summary of what I have developed which returns 0 or 1 for intResult to indicate a success or failure.
How do I obtain the returned value from within the script when the script is executed?
I think this is to do with altaring the "Create" word in the code below.
Any thoughts please?

Thanks

System.Management.ManagementPath path = new System.Management.ManagementPath("Win32_Process");
object[] methodArgs = { "cscript.exe \\machinename\c$\scriptname.vbs", null, null, 0 };

intResult = (uint)processClass.InvokeMethod("Create", methodArgs);
AnswerRe: WMI Pin
Dave Kreskowiak12-Jun-09 5:18
mveDave Kreskowiak12-Jun-09 5:18 
GeneralRe: WMI Pin
arkiboys12-Jun-09 8:08
arkiboys12-Jun-09 8:08 
GeneralRe: WMI Pin
Dave Kreskowiak12-Jun-09 11:15
mveDave Kreskowiak12-Jun-09 11:15 
GeneralRe: WMI [modified] Pin
arkiboys14-Jun-09 20:31
arkiboys14-Jun-09 20:31 
Questioncannot insert into database 2005 using visual c# 2008 Pin
Adekolurejo12-Jun-09 2:01
Adekolurejo12-Jun-09 2:01 
AnswerRe: cannot insert into database 2005 using visual c# 2008 Pin
Nagy Vilmos12-Jun-09 2:26
professionalNagy Vilmos12-Jun-09 2:26 
AnswerRe: cannot insert into database 2005 using visual c# 2008 Pin
Rob Philpott12-Jun-09 2:37
Rob Philpott12-Jun-09 2:37 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
PIEBALDconsult12-Jun-09 3:49
mvePIEBALDconsult12-Jun-09 3:49 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
Rob Philpott12-Jun-09 4:12
Rob Philpott12-Jun-09 4:12 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
PIEBALDconsult12-Jun-09 9:21
mvePIEBALDconsult12-Jun-09 9:21 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
Rob Philpott12-Jun-09 23:17
Rob Philpott12-Jun-09 23:17 
QuestionFileWather Path Error [modified][Solved] Pin
MumbleB12-Jun-09 1:58
MumbleB12-Jun-09 1:58 
AnswerRe: FileWather Path Error Pin
_AnsHUMAN_ 12-Jun-09 2:02
_AnsHUMAN_ 12-Jun-09 2:02 
GeneralRe: FileWather Path Error Pin
MumbleB12-Jun-09 2:09
MumbleB12-Jun-09 2:09 
GeneralRe: FileWather Path Error Pin
Nagy Vilmos12-Jun-09 2:17
professionalNagy Vilmos12-Jun-09 2:17 
GeneralRe: FileWather Path Error Pin
MumbleB12-Jun-09 2:28
MumbleB12-Jun-09 2:28 
GeneralRe: FileWather Path Error Pin
Nagy Vilmos12-Jun-09 2:39
professionalNagy Vilmos12-Jun-09 2:39 

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.