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: Mon, 20 Aug 2007 18:42:27 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    mike
          2    Mark Rae [MVP]
          3    mike


fire a VBS from ASP.NET   
I have a VBS (old fashioned VBS that is) that installs a network
printer via WMI on any PC.

I can pass in the PC's name via a command line argument.

The question is, how can I execute this VBS from a web page. Passing
in the user's PC name is the easy part (I think). Ulitmately, I need
to make a call something like
        installprinter.vbs mypcname

Yes, I'm sure I could use the .NET wrapper for WMI but the script
already exists and I don't understand how to use it. Whereas, I know
VBS pretty well.

Thanks
Mike
Date:Mon, 20 Aug 2007 18:42:27 -0700   Author:  

Re: fire a VBS from ASP.NET   
"mike"  wrote in message 
news:1187660547.658195.17270@r23g2000prd.googlegroups.com...


> Yes, I'm sure I could use the .NET wrapper for WMI


Are you trying to install this printer on the server or the client...?


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
Date:Tue, 21 Aug 2007 08:47:50 +0100   Author:  

Re: fire a VBS from ASP.NET   

>
> Are you trying to install this printer on the server or the client...?
>
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net


Hi Mark

I want to install the printer on the client that calls the script. The
VBS will run on the server but connect to the WMI service on the
client.

Just a thought - will the security surrounding HTTP actually prevent
this from happening? While the script itself doesn't use HTTP, I
wonder if the fact that it has been called from HTTP will prevent
execution.

Thanks
Mike
Date:Tue, 21 Aug 2007 15:21:38 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


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