Avatar billede gadebarnet Nybegynder
01. oktober 2003 - 16:09 Der er 1 kommentar og
1 løsning

ASPExec spørgsmål

Fra readme filen:
-----

An Exec component for ASP
Version 3.0
Sept 20, 1998
Copyright (c) 1997, 1998 by ServerObjects Inc. All rights reserved.
http://www.serverobjects.com

Notes for version 1.0 & 2.0 users:
Please unregister the old version before installing this new version.
You can do this by typing
  regsvr32 /u aspexec.dll

Also note that the object is now called AspExec.Execute instead of
ASPsvg.Execute so your Server.CreateObject calls will need to be changed
to reflect this new name.


Description: ASPExec allows you to execute DOS and Windows apps. The following
functionality is available through ASPExec

property Application : Set the path (optional) and exe/com filename
property Parameters  : Set the app parameters
property TimeOut    : Set the timeout to wait (milliseconds)
                        Used only for ExecuteDosApp and ExecuteWinAppAndWait
property ShowWindow  : Set whether the executing app is visible or not
                        Used only for ExecuteWinAppAndWait and ExecuteWinApp


ExecuteDosApp        : Executes the specified app as a DOS app and returns
                        stdio as string
ExecuteWinAppAndWait : Execute the specified app as a Windows app and wait
                        for the specified timeout if exec is successful
ExecuteWinApp        : Execute the specified app as a Windows app and return
                        result code immediately


Installation: To use this ASP component move the DLL into a subdirectory
(like \winnt\system32 for NT or \windows\system for Win95) and type

  regsvr32 aspexec.dll

You MUST go into control panel/services/world wide web publishing service
and turn Allow Service to Interact with Desktop on to use this component
if you run IIS as a service.

Some users after upgrading to SP3 report that visual apps no longer pop up. Make sure
that you have any Inetinfo managed services marked as "Allow to Interact with Desktop"
if you want to see visible apps on the server screen. Otherwise they will appear as
hidden windows.

Usage: See the attached example ASP scripts for usage
-----


Men jeg kan ikke få den til at vise de vinduer der køre på serveren...

Nogle der kender dette her component, eller et andet component til eksekvering af utils på serveren via client scripts...

HASTER
Avatar billede sth Novice
01. oktober 2003 - 22:57 #1
>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.


prøv evt. også: Dynu.Exec

<%
Set myexec = Server.Createobject("Dynu.Exec")

Response.Write("<PRE>")

REM the below line will execute the command "ipconfig" and display its result.
Response.Write(myexec.execute("ipconfig"))

REM the below line will execute the command "nslookup -type=mx microsoft.com" and display its result.
Response.Write(myexec.execute("nslookup -type=mx microsoft.com"))

Response.Write("</PRE>")

Set myexec = nothing
%>

fra http://www.dynu.com det er gratis
Avatar billede sth Novice
01. oktober 2003 - 22:58 #2
var et svar :)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester