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

Home Posts Topics Members FAQ

shelling an app on server from asp?

Hello,

I would like to turn on/invoke a VB6 app which resides on
the server/folder where IIS is running from an ASP page.
As for security, this would be all happening within an
intranet with firewall protection, etc, no outside
internet access. In pseudocode of my asp app I am
thinking like this:

<%
....
RetVal = Shell("../myApp.exe " & someArg, vbNormalFocus)
....
%>

I would like to be able to invoke myApp from anywhere
within my company. Is it doable what I would like to do?
And if so, if my pseudo code above is not going to work,
may I request if someone could share the correct method?

Thanks,
Rich
Jul 19 '05 #1
12 1809
"Rich" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
Hello,

I would like to turn on/invoke a VB6 app which resides on
the server/folder where IIS is running from an ASP page.


http://www.aspfaq.com/show.asp?id=2059

--
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 #2
Thank you very much for the web address. This is very
helpful.

Rich
-----Original Message-----
"Rich" <an*******@discussions.microsoft.com> wrote in messagenews:01****************************@phx.gbl...
Hello,

I would like to turn on/invoke a VB6 app which resides on the server/folder where IIS is running from an ASP page.
http://www.aspfaq.com/show.asp?id=2059

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and

utilities for running IIShttp://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...ommunity/cente rs/iis/
.

Jul 19 '05 #3
Well, I went and tried the code sample from the webpage
below. This code did invoke myApp from the ASP as I could
see it in the Windows Task Manager as running, but myApp
was not visible when invoked from the ASP. I tried the
same code from a .vbs file, and myApp was visible. Is
there a way to make myApp visible when invoking from the
ASP?

Thanks,
Rich
-----Original Message-----
"Rich" <an*******@discussions.microsoft.com> wrote in messagenews:01****************************@phx.gbl...
Hello,

I would like to turn on/invoke a VB6 app which resides on the server/folder where IIS is running from an ASP page.
http://www.aspfaq.com/show.asp?id=2059

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and

utilities for running IIShttp://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...ommunity/cente rs/iis/
.

Jul 19 '05 #4
"Rich" <an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl...
Well, I went and tried the code sample from the webpage
below. This code did invoke myApp from the ASP as I could
see it in the Windows Task Manager as running, but myApp
was not visible when invoked from the ASP. I tried the
same code from a .vbs file, and myApp was visible. Is
there a way to make myApp visible when invoking from the
ASP?


That's because when launched from ASP, the app is running under the
context/desktop of the web server. Is it really practical to run that kind
of app from a web server? What are you trying to do?

--
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 #5
I have to pull data into a Sql Server on this server 2 or
3 times a week (1,000,000+ records) from another
datasource within my company. I have been requested to
automate this process. I was thinking about having a
webpage someone could bring up within the company intranet
and send parameters to my app which would invoke the data
pulling apps.

Another trick I was thinking about was to just pass data
to the app's let properties. In MS access I can make a
reference to the App and then say Set x = New myApp,
x.letParm1 = #9/1/03#. I can also instantiate myApp with
CreateObject("myAppProj.class1") from vbs (or Access).
But I like to have the app just running and use GetObject,
and then pass data to it. I was not able to use GetObject
(, "myAppProj.class1") in my test vbs file. Is there a
way I could write directly to myApp while it is running
from asp/vbs? I can do that from ms Access, how to do it
from script?

I realize that there are several ways I could pass data to
the server, and just have myApp polling for messages or
textfiles, and I could even send an argument with
parameters with wsShell.run "myApp.exe " & #9/1/03#, and
it does not have to be visible. But I would rather have
myApp running visibly and be able to pass/write data to it
which would show up like in a textbox. How can I
reference myApp from asp/vbs like in ms Access or use
GetObject so that I could write/pass data directly to the
running instance of myApp?

Thanks,
Rich

-----Original Message-----
"Rich" <an*******@discussions.microsoft.com> wrote in messagenews:06****************************@phx.gbl...
Well, I went and tried the code sample from the webpage
below. This code did invoke myApp from the ASP as I could see it in the Windows Task Manager as running, but myApp
was not visible when invoked from the ASP. I tried the
same code from a .vbs file, and myApp was visible. Is
there a way to make myApp visible when invoking from the
ASP?
That's because when launched from ASP, the app is running

under thecontext/desktop of the web server. Is it really practical to run that kindof app from a web server? What are you trying to do?

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

Jul 19 '05 #6
Rich wrote:
I have to pull data into a Sql Server on this server 2 or
3 times a week (1,000,000+ records) from another
datasource within my company. I have been requested to
automate this process. I was thinking about having a
webpage someone could bring up within the company intranet
and send parameters to my app which would invoke the data
pulling apps.

Why not use the builtin SQL Server capabilities? You can use SQL Agent to
schedule a DTS package to run periodically.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #7
(you asked for it :) I have to pull data from a Lotus
Notes Domino Server (actually 4 of them). The datasets I
am pulling contain like 200 fields a piece and like
300,000+ records apiece. The fields can contain any
manner of data, and more times than not people have
entered characters that are not ascii based or recognized,
etc. So I have a VB app which pulls this data and cleans
up unacceptable characters, and writes nice clean ascii
text to my sql server tables and in sql I have sp's that
converts dates back to date format, etc. Maybe DTS could
do all this too, and I'm sure I should purchase a book on
DTS, but I haven't. Truth is, I just don't see how DTS
could pull data from a Lotus Notes DB since Notes is
document based (as opposed to relational). I was hoping I
could pass parameters to my pulling app (day and time to
pull data) and also read back timestamp data from when
data was pulled back to the asp. I have noticed that I
can invoke my app from asp, but I can't seem to write data
to the disk from my app when called by asp (I'm sure that
is a feature of asp - maybe not?) I am looking to use set
x = GetObject("c:\somedir\myApp.exe"), x.letParam=...

and soforth. The alternative would be to load an app on
each workstation that needs to deal with this project. I
just thought that planting a hyperlink on the desktop
would have been a lot easier with just one app on the
server. Any comments appreciated (can I use GetObject in
asp?).

Thank you again for your reply.
Rich
-----Original Message-----
Rich wrote:
I have to pull data into a Sql Server on this server 2 or 3 times a week (1,000,000+ records) from another
datasource within my company. I have been requested to
automate this process. I was thinking about having a
webpage someone could bring up within the company intranet and send parameters to my app which would invoke the data pulling apps.
Why not use the builtin SQL Server capabilities? You can

use SQL Agent toschedule a DTS package to run periodically.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my Fromheader is my spam trap, so I don't check it very often. You will get aquicker response by posting to the newsgroup.
.

Jul 19 '05 #8
OK. Someone at my place just gave me a great idea (so
simple!). Write my paramters to an Access mdb with ADO.
Let Access manipulate my pulling programs. I would never
have thought of this because this is just too easy :).
This guy also mentioned that I need to step up to .Net
(which is already at my disposal).

I thank everyone for your responses to my posts.
Rich

-----Original Message-----
Hello,

I would like to turn on/invoke a VB6 app which resides on
the server/folder where IIS is running from an ASP page.
As for security, this would be all happening within an
intranet with firewall protection, etc, no outside
internet access. In pseudocode of my asp app I am
thinking like this:

<%
....
RetVal = Shell("../myApp.exe " & someArg, vbNormalFocus)
....
%>

I would like to be able to invoke myApp from anywhere
within my company. Is it doable what I would like to do?And if so, if my pseudo code above is not going to work,
may I request if someone could share the correct method?

Thanks,
Rich
.

Jul 19 '05 #9
Yes, its doable...

Keyur Shah
Verizon Communications
732-423-0745

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #10
Rich wrote:
(you asked for it :) I have to pull data from a Lotus
Notes Domino Server (actually 4 of them). The datasets I
am pulling contain like 200 fields a piece and like
300,000+ records apiece. The fields can contain any
manner of data, and more times than not people have
entered characters that are not ascii based or recognized,
etc. So I have a VB app which pulls this data and cleans
up unacceptable characters, and writes nice clean ascii
text to my sql server tables and in sql I have sp's that
converts dates back to date format, etc. Maybe DTS could
do all this too, and I'm sure I should purchase a book on
DTS, but I haven't. Truth is, I just don't see how DTS
could pull data from a Lotus Notes DB since Notes is
document based (as opposed to relational).


Given the proper ODBC driver oo OLEDB Provider, DTS can certainly do this.

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #11
Rich wrote:
Surely there is a way to do this with ASP, ...


I don't know. I am very much opposed to doing time-consuming tasks (such as
data exports/imports) via ASP, so muxh so that I've never really
investigated ways of doing them. This is not something I would recommend
doing in a client-server environment.
You could create a VB application, and use SQL Agent to run it periodically,
passing parameters to it via the command line ...

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #12
Thank you for this idea. Oh, and I didn't mean to do data
import/export via ASP. I meant pass params via ASP. But
the command line idea sounds interesting. Unfortunately
for me, I came into the programming scene after gui had
taken over and am not well versed with command line
stuff. Is it possible to send params from another
workstation to the server via the command line? What
would it look like?

C:\cd \\server1\f:\dir1 or C:\\cd U:\dir1
U:\dir1\myApp.exe arg1, arg2

Even though my app lives on the server, by calling it from
a workstation, wouldn't that invoke the app on the calling
workstation? So data would go from Domino server to
workstation to the server where Sql Server resides.
Hopefully, I will figure out the best way to do what I am
doing with the least amount of installing apps on
workstations, or having apps on the server which poll
24/7. I just thought ASP might be an option. Command
Line, hmmm, interesting.

Rich
You could create a VB application, and use SQL Agent to run it periodically,passing parameters to it via the command line ...

Bob Barrows


Jul 19 '05 #13

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

Similar topics

3
by: Hank Reed | last post by:
I have been using the ShellExecute command for about a year to print out a list of PDF files. It's a great capability. Of course, the documents are actually printed by the Adobe application. We...
1
by: A | last post by:
Does anyone have any code for shelling out a command to start up an executable with command line arguments? I am simply trying to start a MSDE install by calling its Setup.exe. Thanks
3
by: sam | last post by:
Im trying to shell a simple console application from an ASP.NET web form. I use the vb command: Shell(sShellPath, AppWinStyle.NormalFocus, True) It executes the line of code without any errors...
1
by: Stephen Miller | last post by:
On my development machine (where the group 'Everyone' has full access to every directory), the following code successfully shells to a console application: Dim objShell As...
3
by: _IS_ - | last post by:
I have the problem that shelling in vb.net is not working for me at this point. I am trying to make a graphical application to netsend (multiple) PCs on the network(notwork) and to ping to check...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
6
by: djc | last post by:
I'm wondering what options are available, if any, for being able to run 'any command line command' from a .net compiled program. I would want the output that would normally go to the command line...
0
by: MirkoGeest | last post by:
(Webmaster: sorry, I posted this first at the General Software Engineering category, but I think this goes here) I'm using Visual Basic with Web Forms on .NET 2003 and I'm experiencing a very...
8
by: Bill H | last post by:
In a php script I am using I need to call an external program and have it start running, but I don't want the php script to wait for it to finish. Looking at exec() and system() these would all...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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
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
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
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
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.