DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 10 Aug 2007 00:24:26 +0100,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Nigel
          2    Siva M


ASP.Net run VBS function   
Hi All,

Does anyone know if it is possible / know how to run a function in a vbs 
script from a c# asp.net 2.0 page passing a variable to it and getting a 
value back?

Thanks in advance.

Regards,

Nigel
Date:Fri, 10 Aug 2007 00:24:26 +0100   Author:  

RE: ASP.Net run VBS function   
System.Diagnostics.Process p = System.Diagnostics.Process.Start(@"Test.vbs", 
"command line args");
p.WaitForExit();
Console.WriteLine (p.ExitCode.ToString());

Your VBScript file would use WScript.Arguments to access the command line 
args passed from .NET and quit as WScript.Quit (return code). The return code 
is fetched via the ExitCode propert as above.

"Nigel" wrote:


> Hi All,
> 
> Does anyone know if it is possible / know how to run a function in a vbs 
> script from a c# asp.net 2.0 page passing a variable to it and getting a 
> value back?
> 
> Thanks in advance.
> 
> Regards,
> 
> Nigel 
> 
> 
> 
Date:Fri, 10 Aug 2007 09:42:03 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us