473,480 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

why is .exe not visible?

I know this will be created on the server... calc is only a test that will
eventually be replaced by a much more complex .exe.

I NEED to launch an exe on the *server* that is visible on the *server*

The code below does not do that.

Anyone know what the problem is?

test.asp
<%
dim id
dim wShell

set wShell = server.createObject("Wscript.shell")
id = wShell.Run("c:\inetpub\test\calc.exe", 1, false)

response.write id
response.end
%>
Jul 19 '05 #1
10 1719
The answer is the same in this post as it was in your first post. Why do
you need your application to be visible on the server? Can you tell us what
your ultimate goal here is? Maybe there's a different approach you can
take.

Ray at work

"yabba" <ya****************@bigfoot.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
I know this will be created on the server... calc is only a test that will
eventually be replaced by a much more complex .exe.

I NEED to launch an exe on the *server* that is visible on the *server*

The code below does not do that.

Anyone know what the problem is?

test.asp
<%
dim id
dim wShell

set wShell = server.createObject("Wscript.shell")
id = wShell.Run("c:\inetpub\test\calc.exe", 1, false)

response.write id
response.end
%>

Jul 19 '05 #2
"yabba" <ya****************@bigfoot.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
I know this will be created on the server... calc is only a test that will
eventually be replaced by a much more complex .exe.

I NEED to launch an exe on the *server* that is visible on the *server*

The code below does not do that.

Anyone know what the problem is?


See the section "Desktop Issues":
http://support.microsoft.com/default...b;en-us;158229

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #3
Because ASP code does not run as a "visible" process. So, any EXEs you
attempt to launch will not be visible either.

As I've already stated, this is not something you can accomplish from ASP.
Starting a new thread isn't going to bring about some new magical solution.

The closest thing you will be able to do is use a database or something to
store "EXE to launch" data. Have a Windows scheduled task running as you or
the admin (e.g. not IUSR, and have that user logged in) that checks the
database every minute. If it finds a new entry, it launches the EXE, and
marks the row.

But I still think this seems ridiculous. You are using the wrong tool for
the job. Think about it for a second. Typically, an ASP page is invoked by
a remote person, who is not at the server. Are you going to have someone
manning your server 24/7 watching for these "visible apps"? This is the
same reason you can't call a MsgBox from ASP. Who's going to sit at the
server clicking OK?

If you are running the ASP page while sitting at the server, then there is
no reason to make it an ASP page at all. Almost everything you can do from
ASP can be done from a .VBS or .JS script using Windows Scripting Host, with
fewer limitations (dialogs, permissions, etc).

"yabba" <ya****************@bigfoot.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
I know this will be created on the server... calc is only a test that will
eventually be replaced by a much more complex .exe.

I NEED to launch an exe on the *server* that is visible on the *server*

The code below does not do that.

Anyone know what the problem is?

test.asp
<%
dim id
dim wShell

set wShell = server.createObject("Wscript.shell")
id = wShell.Run("c:\inetpub\test\calc.exe", 1, false)

response.write id
response.end
%>

Jul 19 '05 #4
In article <OG**************@TK2MSFTNGP10.phx.gbl>, aa***@TRASHaspfaq.com
says...

Because ASP code does not run as a "visible" process. So, any EXEs you
attempt to launch will not be visible either.

As I've already stated, this is not something you can accomplish from ASP.
Starting a new thread isn't going to bring about some new magical solution.

The closest thing you will be able to do is use a database or something to
store "EXE to launch" data. Have a Windows scheduled task running as you or
the admin (e.g. not IUSR, and have that user logged in) that checks the
database every minute. If it finds a new entry, it launches the EXE, and
marks the row.
Thanks Aaron,

This is the type of info I was looking for. I have considered a solution
similar to yours or perhaps the creation of a one-time task. Even so, if the
task manager can launch a visible gui then it seems there should be a way to
accomplish that task directly.

"ridiculous"? as I stated, what I am actually doing is far too complex to
discuss here

If you are truly interested in a discussion, send an email.

yabba
ya****************@bigfoot.com
But I still think this seems ridiculous. You are using the wrong tool for
the job. Think about it for a second. Typically, an ASP page is invoked by
a remote person, who is not at the server. Are you going to have someone
manning your server 24/7 watching for these "visible apps"? This is the
same reason you can't call a MsgBox from ASP. Who's going to sit at the
server clicking OK?

If you are running the ASP page while sitting at the server, then there is
no reason to make it an ASP page at all. Almost everything you can do from
ASP can be done from a .VBS or .JS script using Windows Scripting Host, with
fewer limitations (dialogs, permissions, etc).

"yabba" <ya****************@bigfoot.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
I know this will be created on the server... calc is only a test that will
eventually be replaced by a much more complex .exe.

I NEED to launch an exe on the *server* that is visible on the *server*

The code below does not do that.

Anyone know what the problem is?

test.asp
<%
dim id
dim wShell

set wShell = server.createObject("Wscript.shell")
id = wShell.Run("c:\inetpub\test\calc.exe", 1, false)

response.write id
response.end
%>



Jul 19 '05 #5
Ray,

If I can launch a *visible* calc on the *server* then the problem is solved.
Why make it more complex than that?

If you do have "a different approach" I would be interested.

In article <OL**************@TK2MSFTNGP11.phx.gbl>, %=sLocation% says...

The answer is the same in this post as it was in your first post. Why do
you need your application to be visible on the server? Can you tell us what
your ultimate goal here is? Maybe there's a different approach you can
take.

Ray at work

"yabba" <ya****************@bigfoot.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
I know this will be created on the server... calc is only a test that will
eventually be replaced by a much more complex .exe.

I NEED to launch an exe on the *server* that is visible on the *server*

The code below does not do that.

Anyone know what the problem is?

test.asp
<%
dim id
dim wShell

set wShell = server.createObject("Wscript.shell")
id = wShell.Run("c:\inetpub\test\calc.exe", 1, false)

response.write id
response.end
%>



Jul 19 '05 #6
Why? Who's going to be there to see it? Do you understand why people are
questioning what you're trying to do? It doesn't make any sense to attempt
to launch a GUI application on a Web server. Again, can you tell us what
your ultimate goal is here?

Ray at work

"yabba" <ya****************@bigfoot.com> wrote in message
news:uH**************@TK2MSFTNGP09.phx.gbl...
Ray,

If I can launch a *visible* calc on the *server* then the problem is solved. Why make it more complex than that?

If you do have "a different approach" I would be interested.

In article <OL**************@TK2MSFTNGP11.phx.gbl>, %=sLocation% says...

The answer is the same in this post as it was in your first post. Why do
you need your application to be visible on the server? Can you tell us whatyour ultimate goal here is? Maybe there's a different approach you can
take.

Ray at work

"yabba" <ya****************@bigfoot.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
I know this will be created on the server... calc is only a test that will eventually be replaced by a much more complex .exe.

I NEED to launch an exe on the *server* that is visible on the *server*

The code below does not do that.

Anyone know what the problem is?

test.asp
<%
dim id
dim wShell

set wShell = server.createObject("Wscript.shell")
id = wShell.Run("c:\inetpub\test\calc.exe", 1, false)

response.write id
response.end
%>


Jul 19 '05 #7
Hi Tom,

Looks like were onto something here... thanks.

In article <c3*********@kcweb01.netnews.att.com>, to***@TmvpsD.O.Torg says...

"yabba" <ya****************@bigfoot.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
I know this will be created on the server... calc is only a test that will
eventually be replaced by a much more complex .exe.

I NEED to launch an exe on the *server* that is visible on the *server*

The code below does not do that.

Anyone know what the problem is?


See the section "Desktop Issues":
http://support.microsoft.com/default...b;en-us;158229

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/


Jul 19 '05 #8
I understand that you folks may be curious but the problem is still simply
stated.
If I can launch a *visible* calc on the *server* then the problem issolved.


If you have an answer I am interested, if you are just curious or simply want
to discuss, please send an email.

yabba
ya****************@bigfoot.com

In article <e2**************@tk2msftngp13.phx.gbl>, %=sLocation% says...
Why? Who's going to be there to see it? Do you understand why people are
questioning what you're trying to do? It doesn't make any sense to attempt
to launch a GUI application on a Web server. Again, can you tell us what
your ultimate goal is here?

Ray at work

"yabba" <ya****************@bigfoot.com> wrote in message
news:uH**************@TK2MSFTNGP09.phx.gbl...
Ray,

If I can launch a *visible* calc on the *server* then the problem is

solved.
Why make it more complex than that?

If you do have "a different approach" I would be interested.

In article <OL**************@TK2MSFTNGP11.phx.gbl>, %=sLocation% says...
>
>The answer is the same in this post as it was in your first post. Why do
>you need your application to be visible on the server? Can you tell uswhat >your ultimate goal here is? Maybe there's a different approach you can
>take.
>
>Ray at work
>
>"yabba" <ya****************@bigfoot.com> wrote in message
>news:eV**************@TK2MSFTNGP09.phx.gbl...
>> I know this will be created on the server... calc is only a test thatwill >> eventually be replaced by a much more complex .exe.
>>
>> I NEED to launch an exe on the *server* that is visible on the *server*
>>
>> The code below does not do that.
>>
>> Anyone know what the problem is?
>>
>> test.asp
>> <%
>> dim id
>> dim wShell
>>
>> set wShell = server.createObject("Wscript.shell")
>> id = wShell.Run("c:\inetpub\test\calc.exe", 1, false)
>>
>> response.write id
>> response.end
>> %>
>>
>>
>
>



Jul 19 '05 #9
I'm not curious because I care what you're doing. I'm curious because what
you're trying to do doesn't make sense in an ASP environment, and I'd like
to attempt to guide you in a more appropriate direction, if possible.
Typically, when you post somewhere looking for help and people reply with
questions, there are reasons for those questions. And most times, answering
those questions will result in getting an answer that is helpful. If your
questions are answered with questions, it's because people are fishing for
more details that are necessary to answer the question. What I've been
trying to say is that what you're trying to do doesn't make any sense. But
that does NOT mean that the goal you have in mind doesn't make sense.
Chances are, it does make sense in your environment, but we'll never know,
because you will not answer the questions asked.

Ray at work

"yabba" <ya****************@bigfoot.com> wrote in message
news:eZ****************@TK2MSFTNGP09.phx.gbl...
I understand that you folks may be curious but the problem is still simply
stated.
If I can launch a *visible* calc on the *server* then the problem issolved.


If you have an answer I am interested, if you are just curious or simply

want to discuss, please send an email.

yabba
ya****************@bigfoot.com

In article <e2**************@tk2msftngp13.phx.gbl>, %=sLocation% says...

Why? Who's going to be there to see it? Do you understand why people arequestioning what you're trying to do? It doesn't make any sense to attemptto launch a GUI application on a Web server. Again, can you tell us what
your ultimate goal is here?

Jul 19 '05 #10
> If you do have "a different approach" I would be interested.

Yabba, IT WON'T INVOLVE ASP. Do you see the point we're getting at yet???
Or do you want to keep asking?
Jul 19 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1381
by: Eric J Owens | last post by:
Thanks and Hello to you! I have a form in A2k that has a tab control on it. The form opens the first page and filters the records I want just fine. When I click a tab, to view another set of...
5
5527
by: Lyn | last post by:
Hi, I have a form which contains a number of subforms in different pages of a tab control. In the detail section of each subform, I list records related to the main form record, but from...
16
11487
by: Miguel Dias Moura | last post by:
Hello, i have 5 panels in an ASP.net / VB page. The panel 1 is visible the other 4 are NOT visible. I also have 5 images: image 1, image 2, ..., image5. When i click one of the images,...
6
9109
by: Marc Robitaille | last post by:
Hello, Hello, I developed a UserControl. It has funny behavior. It is composed of three controls. A texbox, a combobox and a button. There are three properties to indicate the visibility of...
8
1781
by: Hansen | last post by:
Hi I have a form with multiple labels and textboxes and listboxes that need to be made visible and not visible when buttons are clicked. Is there anyway of grouping them together so that I have...
15
2997
by: Mephisto187 | last post by:
How can I find the currently visible desktop? By calling EnumWindowStations and EnumDesktops I get a list of all available desktops. But is there a way to figure out which one of them is currently...
7
2010
by: GaryDean | last post by:
(one of our developers posted this and it got no answer so I'm giving it another try) I'm converting a DataGrid utility component that previously used the columns array to function as it has in...
2
1843
by: aharding | last post by:
I have fields that are set to be visible or not visible based on the value of another field. These results are displayed in a continuous subform. It works fine except that it only displays the...
3
3717
by: =?Utf-8?B?RnJlZHJpaw==?= | last post by:
Hi I have a problem in one of my user controls that I cannot find any solution for. I'am running C# for Visual studio 2003 and developing a windows application. The problem is the following: I...
8
4467
by: Dan | last post by:
Hi, i experimented with postback and viewstate. With this code, there are 2 dropdownlists created, one visible and with AutoPostBack true, the other not visible and no AutoPostBack, and one...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6760
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7022
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3013
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3004
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.