473,378 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

C#, services and vbscript

Can a service that executes a vbscript have a return value from the vbscript
to C#? If so, how.

TIA

Jim
Jul 11 '07 #1
2 1481
Jim,

The only way that you are going to be able to get a return value is if
you return an integer from the VB script (it might be through a call to Exit
in VB script which takes an integer). You would then get this from the
Process class.

If you need to pass some other data, then you are going to have to use a
shared resource, like a file, or something of that nature.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jim Rasmussen" <jr********@idealas.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Can a service that executes a vbscript have a return value from the
vbscript to C#? If so, how.

TIA

Jim

Jul 11 '07 #2

They can probably communicate through stdin/stdout but you'll have to
deal with serializing the data.

HTH,

Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Wed, 11 Jul 2007 09:34:51 -0500, "Jim Rasmussen"
<jr********@idealas.comwrote:
>Can a service that executes a vbscript have a return value from the vbscript
to C#? If so, how.

TIA

Jim
Jul 11 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: Christopher Brandsdal | last post by:
If I have a .ASP page that runs JScript code - is it possible to include an ..ASP page that runs VBscript???
16
by: Mike Schinkel | last post by:
Does anyone know if there are bugs in VBScript's GetRef()? I'm using VBScript Version 5.6.8515 on Win2003Server w/ASP. Sometimes it returns an object that VarType() says is a vbObject. Other...
2
by: Roja Doja | last post by:
I need to be able to change the Terminal Services attributes. Using vbscript on Server 2003 this is easy enough, as described at ...
1
by: S.G. | last post by:
is it possible to call web service from vbscript thx
6
by: rishabhshrivastava | last post by:
Hello All, I am using ASP.NET 2.0 and I am experiencing a problem using vbscript that is this script on client side is preventing the postback of my controls. I have a dropdownlist which is...
3
by: xerc | last post by:
So, this may not even be possible, but if so, I was hoping someone could point me in the right direction or give me the right terminology to use for searches of code example. Aside from monitoring...
0
by: Vasudha Balyan | last post by:
Can we access webservices using VBScript? Thanks VB
5
by: CSharper | last post by:
I have an asp page (please don't ask me why), I would like to consume a .net web services. What is the best way to consume the web service? Is it using com component or using vbscript? Could the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.