Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP and VBScript

Status
Not open for further replies.

disord3r

Programmer
Apr 12, 2002
189
US
Is it possible to make an ASP script launch a VBScript that is located on another computer that happens to be in the same domain?

For exmaple, Computer A has IIS with the ASP script. Computer B has the VBScript. When the script on Computer A runs, it should cause the VBSCript on Computer B to execute (with any operations in the VBScript happening local to Computer B).

Thanks!
 
Only way that springs immediately to mind for me, depends on whether the vbscript on PC-B is contained within a page that you may or may not be able to call using a Sever.Execute command in asp3.0

Other than that I guess you'll need to wrap it all up in RPC overhead or Com+ but not really sure how you'd get the output back without head pains.
 
I was thinking more along the lines of computer A "launching" a program across the domain, like "\\b\wherever\script.vbs", just the same as if I had physically logged into Computer B and double-clicked that VBS file.

From what I know of server.execute, its an include of sorts. A way of processing an external file as if it were part of the calling script. The problem here is that the calling script would be on Computer A, but I want the called script to execute on Computer B, not Computer A.

As for the output, that's not a concern. Computer A doesn't need to receive output from or process anything from Computer B. The ASP on Computer A inserts some info into a database and then launches the VBScript on Computer B to use that data (by creating some text files on Computer B). CompA and CompB don't necessarily interact, but do use the same data out of the same database.

Hope this makes it a little clearer, and thanks for the help!
 
even if you did connect to "\\b\wherever\script.vbs", and execute the file, it would still execute on cpu A, after dragging off the disk shared by B.

The only method I know of to get CPU B, to execute the script is to put waders on and get inside the windows internals, you'll need to make a request to computer B to execute it for you. usually via RPC.

Is there a possibilty of getting IIS on comp B and making a page call to execute the vbs file? via an asp script which accepts the script name as a parameters and uses the fileSysemObject to execute it?
 
IIS: I thought of doing that, but I'd have to go and install IIS. Sounds simple, but I actually simplified my description by saying "Computer B" -- "Computer B" is actually 7 similar but different systems running this script I want to execute. :)

I'll check out this RPC business. Thanks for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top