Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

closing apps launched with Aspexec.dll - for home automation project

0 views
Skip to first unread message

derek foley

unread,
Sep 9, 2001, 7:25:41 PM9/9/01
to
After reading the help file for X10Net (from http://www.mtnsys.com) I
discovered that the superb program accepts input from web-pages, I already
tested it's remote app access using Winkey, no problems there.
So I decided I'd like to build a web-page that can control my home X10
appliances.
A kind soul pointed me in the direction of Aspexec.dll from
http://www.serverobjects.com

But getting it to work with IIS 5.0 and ASP is another matter.
I modified the code to point to the path of the app, but noticed something
odd happening.

1) The program runs multiple instances of itself and the other new
"instance" crashes with a dialog saying X10Net has produced errors and will
now close (presumably this shouldnt happen)

The code itself shown below in its original form also opens multiple
instances of Notepad that are impossible to access or - even worse quit
from!
I've checked that the "www service" is set to interact with desktop.

The plan is to hopefully use this method to access my homeautomation
program, which accepts input using the command line.

I'm a little confused by IIS's options for "application settings" - can
anyone point me in a good tutorial website URL?
perhaps its something to do with that.

code below:
<html>
<head><title>ASPExec Test (ExecuteWinApp)</title><head>
<body bgcolor=white text=black>
<blockquote>
<H3>ASPExec Execute X10Net Test</H3>
using c:\X10Net\X10Net.exe B,6,OFF
<%
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "C:\X10Net\X10Net.exe"
Executor.Parameters = "B,6,OFF"
Executor.ShowWindow = True
Response.Write "Attempting to execute " & Executor.Application & "<br>"
strResult = Executor.ExecuteWinApp
Response.Write "The result of this call was: " & strResult
%>
<p>If you do not see Notepad then it is possible that Notepad is running
with a hidden window.
This could be caused by not having "Allow Service to Interact with Desktop"
turned off in
Control Panel/Services/World Wide Web Publishing Service or it could be that
the version
of IIS you are running is preventing the window from being displayed. Look
in a task list
such as task manager, or use TList from the NT resource kit to see if
Notepad is running.
<B>Note: All InetInfo managed services must have "Allow Service to Interact
with Desktop"
turned on to see visible apps.</b>
</blockquote>
</body>
</html>

----------------------------

when the code above is ued with "notepad.exe" it just spawns "invisible
apps" that appear in the process list, and cannot be "ended", each time the
asp runs, another instance runs, using more memory.

can anyone help me with this problem.

Thanks in advance.

Derek Foley


Chip G

unread,
Sep 10, 2001, 11:12:24 AM9/10/01
to
I used the free components from Keware for the CM11 and CM17 to web enable
my house. They worked without flaw and I did not have any problems with
multiple instances... It did require a little coding in ASP to take
advantage of them but the docs for the components were easy to follow.

Regards,
Chip

"derek foley" <di...@nospamc-w-p.com> wrote in message
news:9ngtpk$2ij$1...@uranium.btinternet.com...

Ron

unread,
Sep 16, 2001, 12:32:06 AM9/16/01
to
Ditto........
-----------------------
0 new messages