Click here to Skip to main content
14,743,055 members
Home » Discussions » C#
   

C#

 
AnswerRe: vsto problem PinPopular
Randor 12-Jun-09 10:08
professional Randor 12-Jun-09 10:08 
GeneralTimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 5:04
Memberhairy_hats12-Jun-09 5:04 
GeneralRe: TimeSpan equivalent for the working week Pin
Luc Pattyn12-Jun-09 5:11
sitebuilderLuc Pattyn12-Jun-09 5:11 
GeneralRe: TimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 5:23
Memberhairy_hats12-Jun-09 5:23 
GeneralRe: TimeSpan equivalent for the working week Pin
Luc Pattyn12-Jun-09 5:27
sitebuilderLuc Pattyn12-Jun-09 5:27 
GeneralRe: TimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 5:49
Memberhairy_hats12-Jun-09 5:49 
QuestionMCE Remote Controller Pin
ryan11712-Jun-09 3:46
Memberryan11712-Jun-09 3:46 
QuestionWMI Pin
arkiboys12-Jun-09 3:36
Memberarkiboys12-Jun-09 3: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 6:18
mveDave Kreskowiak12-Jun-09 6:18 
GeneralRe: WMI Pin
arkiboys12-Jun-09 9:08
Memberarkiboys12-Jun-09 9:08 
GeneralRe: WMI Pin
Dave Kreskowiak12-Jun-09 12:15
mveDave Kreskowiak12-Jun-09 12:15 
GeneralRe: WMI [modified] Pin
arkiboys14-Jun-09 21:31
Memberarkiboys14-Jun-09 21:31 
Questioncannot insert into database 2005 using visual c# 2008 Pin
Adekolurejo12-Jun-09 3:01
MemberAdekolurejo12-Jun-09 3:01 
AnswerRe: cannot insert into database 2005 using visual c# 2008 Pin
Nagy Vilmos12-Jun-09 3:26
professionalNagy Vilmos12-Jun-09 3:26 
AnswerRe: cannot insert into database 2005 using visual c# 2008 Pin
Rob Philpott12-Jun-09 3:37
MemberRob Philpott12-Jun-09 3:37 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
PIEBALDconsult12-Jun-09 4:49
professionalPIEBALDconsult12-Jun-09 4:49 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
Rob Philpott12-Jun-09 5:12
MemberRob Philpott12-Jun-09 5:12 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
PIEBALDconsult12-Jun-09 10:21
professionalPIEBALDconsult12-Jun-09 10:21 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
Rob Philpott13-Jun-09 0:17
MemberRob Philpott13-Jun-09 0:17 
QuestionFileWather Path Error [modified][Solved] Pin
MumbleB12-Jun-09 2:58
MemberMumbleB12-Jun-09 2:58 
AnswerRe: FileWather Path Error Pin
_AnsHUMAN_ 12-Jun-09 3:02
Member_AnsHUMAN_ 12-Jun-09 3:02 
GeneralRe: FileWather Path Error Pin
MumbleB12-Jun-09 3:09
MemberMumbleB12-Jun-09 3:09 
GeneralRe: FileWather Path Error Pin
Nagy Vilmos12-Jun-09 3:17
professionalNagy Vilmos12-Jun-09 3:17 
GeneralRe: FileWather Path Error Pin
MumbleB12-Jun-09 3:28
MemberMumbleB12-Jun-09 3:28 
GeneralRe: FileWather Path Error Pin
Nagy Vilmos12-Jun-09 3:39
professionalNagy Vilmos12-Jun-09 3: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.