为什么.exe不可见? [英] why is .exe not visible?

查看:96
本文介绍了为什么.exe不可见?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这将在服务器上创建... calc只是一个测试,它将最终被更复杂的.exe取代。


我需要在*服务器*上启动一个可在*服务器上看到的exe *


以下代码不会这样做。


任何人都知道问题是什么?


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

%>

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
%>

推荐答案

这篇文章中的答案与第一篇文章中的答案相同。为什么

您需要在服务器上看到您的应用程序?你能告诉我们

你的最终目标是什么?也许你有一个不同的方法,你可以花b / b $

雷在工作


" yabba" <亚**************** @ bigfoot.com>在消息中写道

新闻:eV ************** @ TK2MSFTNGP09.phx.gbl ...
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...
我知道这将是在服务器上创建... calc只是一个测试,最终会被更复杂的.exe取代。

我需要在*服务器上启动一个exe *在*服务器上可见*

下面的代码没有这样做。

任何人都知道问题是什么?

test.asp
<%
dim id
dim wShell

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

response.write id
response.end
%>
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
%>



" yabba" <亚**************** @ bigfoot.com>在消息中写道

新闻:eV ************** @ TK2MSFTNGP09.phx.gbl ...
"yabba" <ya****************@bigfoot.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
我知道这将是在服务器上创建... calc只是一个测试,最终会被更复杂的.exe取代。

我需要在*服务器上启动一个exe *在*服务器上可见*

下面的代码没有这样做。

任何人都知道问题是什么?
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?




请参阅桌面问题部分:
http://support.microsoft.com/default...b;en-us;158229


-

Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - 用于运行IIS的工具,脚本和实用程序
http:// mvp .support.microsoft.com /
http://www.microsoft.com/windowsserv...y/centers/iis/



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/


因为ASP代码不是以可见的形式运行处理。所以,你试图推出的任何EXE也不会被看到。


正如我已经说过的,这不是你可以完成的事情。 ASP。

开始一个新线程不会带来一些新的神奇解决方案。


你能做的最接近的事情是使用一个数据库或什么来

存储EXE启动数据。有一个Windows计划任务正在运行或管理员(例如不是IUSR,并让该用户登录)每分钟检查一次

数据库。如果找到一个新条目,它会启动EXE,并且

标记该行。


但我仍然觉得这看起来很荒谬。你正在使用错误的工具

这份工作。想想它一秒钟。通常,一个ASP页面由一个不在服务器上的远程人员调用。
。你是否会有一个人每周7天每天24小时为你的服务器配备这些可见的应用程序?这是

同样的原因,你不能从ASP调用MsgBox。谁会坐在

服务器上点击OK?


如果你在服务器上运行ASP页面,那么

没有理由让它成为一个ASP页面。几乎所有你可以用

ASP做的事情都可以使用Windows Scripting Host从.VBS或.JS脚本完成,

更少的限制(对话框,权限等)。


" yabba" <亚**************** @ bigfoot.com>在消息中写道

新闻:eV ************** @ TK2MSFTNGP09.phx.gbl ...
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...
我知道这将是在服务器上创建... calc只是一个测试,最终会被更复杂的.exe取代。

我需要在*服务器上启动一个exe *在*服务器上可见*

下面的代码没有这样做。

任何人都知道问题是什么?

test.asp
<%
dim id
dim wShell

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

response.write id
response.end
%>
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
%>



这篇关于为什么.exe不可见?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆