Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Accessing a running c# program from a vbscript

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,48601
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Accessing a running c# program from a vbscript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Accessing a running c# program from a vbscript - 6/21/2007 9:41:48 AM   
  hoping

 

Posts: 1
Score: 0
Joined: 6/21/2007
Status: offline
Hi there,

I'm new to this forum and have searched to see if I can find the soloution to my problem but am having problems.

I have a C# program that is running on my machine that expose a method that can be called by any other program on that machine using remoting (or anyother machine).

I have been asked to write a script that does several things among them is call this method (which has 6 parameters, changes the display on the machine and returns a bool). The script will be running on the same machine and will be triggered by an event.

Does anyone know how I can make this call from a vbscript?

Thanks for you help in advance

Michael
 
 
Post #: 1
 
 RE: Accessing a running c# program from a vbscript - 6/22/2007 1:51:33 AM   
  ebgreen


Posts: 5035
Score: 31
Joined: 7/12/2005
Status: online
Is the C# method exposed as a COM object?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to hoping)
 
 
Post #: 2
 
 RE: Accessing a running c# program from a vbscript - 6/22/2007 4:12:30 AM   
  mcds99


Posts: 434
Score: 4
Joined: 2/28/2006
Status: online
Search for "objshell.run or objshell.exec" that's assuming the C# program is an executable.

_____________________________

Sam

Keep it Simple Make it Fun KiSMiF

(in reply to hoping)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Accessing a running c# program from a vbscript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts