Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 4th, 2004, 11:59 PM
Registered User
 
Join Date: Aug 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default This is how to make ASPEXEC, WSH work thru ASP

Objective to use an ASP page to run a remote application (exe file) on a web server with ASPEXEC.
----------------------------------------------------------

Download FREE ASPEXEC ...
http://www.serverobjects.com/products.htm

REGISTER ASPEXEC
1)move file aspexec.dll to winnt/system32 directory
2)regsrv32 aspexec.dll

***ASPEXEC DOS Commands wont work if Norton antivirus "Script Blocking is enabled, only Windows commands will work !

***REMOTE APPLICATION WINDOW WILL NOT BE VISIBLE, whther you use DOS or windows commands.

SERVICES
1)World Wide Web Publishing--> Allow Service To Interact With Desktop (checked)

IIS
1) Create virtual directory
-Scripts Only
-LOW IIS Process
-Anonymous Login /Windows Integration (checked)

ASP PAGE DIRECTORY PERMISSIONS
Administrator -full control
Everyone-full control
IUSR_MACHINENAME-full control
IWAM_MACHINENAME -full control

APPLICATION EXE FOLDER PERMISSIONS
Administrator -full control
Everyone-full control
IUSR_MACHINENAME-full control
IWAM_MACHINENAME -full control

WINDOWS -

<%@ Language=VBScript %>
<%Option Explicit %>
<%
dim Executor,strResult,WaitObj
Response.Buffer = true
Executor.Application = """C:\Program Files\remoteapp\remoteapp.exe""/ARGUMENTS"
Executor.ShowWindow = false
Set Executor = Server.CreateObject("ASPExec.Execute")
Response.Write "Attempting to execute " & Executor.Application & "<br>"
strResult = Executor.ExecuteWinApp
Response.Write "done"
%>
 
Old August 5th, 2004, 09:00 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

I wonder if you wanted to tell others that this is how ASPEXEC can be used or you are facing any problem in trying to use that? I don't see anything other than that your post explains.

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old September 1st, 2004, 07:13 PM
Registered User
 
Join Date: Aug 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Its quite clear...really :)
Drink Up!

Quote:
quote:Originally posted by happygv
 I wonder if you wanted to tell others that this is how ASPEXEC can be used or you are facing any problem in trying to use that? I don't see anything other than that your post explains.

Cheers!

_________________________
- Vijay G
Strive for Perfection
You can't always get what you want.
But if you try sometimes.... you get what you need.
Rolling Stones.
 
Old September 1st, 2004, 07:13 PM
Registered User
 
Join Date: Aug 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

HappyG..Its Quite Clear ..Really :)


You can't always get what you want.
But if you try sometimes.... you get what you need.
Rolling Stones.





Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO run WSH scripts from ASP?? fhameed Classic ASP Professional 1 July 2nd, 2006 10:55 AM
Problems using WSH and ASPEXEC hugogabriel Classic ASP Components 2 September 28th, 2005 08:07 AM
How do I make this C# code work in ASP.NET? aowen355 ASP.NET 1.x and 2.0 Application Design 1 July 19th, 2005 01:00 PM
This is how to make ASPEXEC, WSH work thru ASP texter Classic ASP Components 0 August 4th, 2004 11:58 PM
ASPExec does not work!!! planeswalk Classic ASP Components 7 January 28th, 2004 07:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.