473,722 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
+ 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 1840
"Rich" <an*******@disc ussions.microso ft.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*******@disc ussions.microso ft.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*******@disc ussions.microso ft.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*******@disc ussions.microso ft.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("m yAppProj.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.clas s1") 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*******@disc ussions.microso ft.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:\s omedir\myApp.ex e"), 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

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

Similar topics

3
2018
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 have recently added a new, high speed, black and white, printer which would be perfect for the engineering documents I want to print. Does anyone know if the destination printer can be selected when using ShellExecute? There is a string field...
1
1499
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
1241
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 but nothing happens. The console application is not executed. I had a review of my security settings and there doesn't seem to be any problem there. Any ideas would be greatly appreciated.
1
1925
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 System.Diagnostics.Process = New System.Diagnostics.Process() With objShell .StartInfo.FileName = "C:\Project\MyApp\MyApp.exe" .StartInfo.Arguments = " 123" .StartInfo.WorkingDirectory = "C:\Project\MyApp\"
3
1536
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 if they are online or not. code like: shell("ping bob >> ""C:\hello.txt""",windowstate.hidden, false)
2
4922
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 being updated by some other process through remoting. When the page loads, I init the tree, and in my browser I can see the initialized tree. The problem is that every time that I receive update to tree from the remote process,
6
1312
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 for the command to be available to my program. I know from even very old VB that you can 'shell' out and run programs, one of which could be for example, cmd.exe with specific command but I don't know that you could get the actual command...
0
1228
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 weird problem: When the user presses a button, the web application starts a shell process to decompress a *.gz file with gzip.exe. All ok for now, I get some data and send formatted data to the client browser.
8
1997
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 seem to wait for the external program to complete before they came back. Is there a way of doing this without waiting for the results? The program I want to run is a perl script that takes data stored by the php program and then creates pdf's and...
0
8863
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9384
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9238
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9088
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6681
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5995
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4502
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3207
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2602
muto222
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.