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
12 1845
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.
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.
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:\di r1 or C:\\cd U:\dir1
U:\dir1\myApp.e xe 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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
|
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.
|
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\"
|
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)
| |
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,
|
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...
|
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.
|
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...
|
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |