473,544 Members | 1,594 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

onpostback: calling command-line programs?

hello,

i work on a private enterprise intranet. we now have a business need
for opening other desktop applications, from my web app's click events.
(my application is not entirely complete, so when user's click some of
the absent-functionality, we need the desktop app to fire up). some of
these apps are started via the command-line.

is this possible? i imagine so, even if it meant working w/ ActiveX
controls or whatnot.

can anyone point me in the proper direction?
thanks,
matt

Jul 24 '06 #1
8 1292
Hi Matt,

With the proper permissions, a Web page can run an application using

Process.Start(m yFavoritesPath)
Process.Start(" execpgm.exe", "param")

http://msdn2.microsoft.com/en-us/library/53ezey2s.aspx

Beware that a program that launches a GUI is going to get you into trouble
because there's nobody around to provide user input such as text and clicks.

If your Winapp exposes an object model via COM, you'd be better to call
those methods programmaticall y.

Ken
Microsoft MVP [ASP.NET]

<ma**@mailinato r.comwrote in message
news:11******** **************@ 75g2000cwc.goog legroups.com...
hello,

i work on a private enterprise intranet. we now have a business need
for opening other desktop applications, from my web app's click events.
(my application is not entirely complete, so when user's click some of
the absent-functionality, we need the desktop app to fire up). some of
these apps are started via the command-line.

is this possible? i imagine so, even if it meant working w/ ActiveX
controls or whatnot.

can anyone point me in the proper direction?
thanks,
matt

Jul 24 '06 #2
excellent.

as for the user and clicking, it should be fine. the web app is mostly
finished, but where it isnt we want to open up the proper standalone
apps. so say they click on a link for an unfinished webpage, the link's
click code-behind will open the corresponding desktop app.
thanks,
matt
Ken Cox [Microsoft MVP] wrote:
Hi Matt,

With the proper permissions, a Web page can run an application using

Process.Start(m yFavoritesPath)
Process.Start(" execpgm.exe", "param")

http://msdn2.microsoft.com/en-us/library/53ezey2s.aspx

Beware that a program that launches a GUI is going to get you into trouble
because there's nobody around to provide user input such as text and clicks.

If your Winapp exposes an object model via COM, you'd be better to call
those methods programmaticall y.

Ken
Microsoft MVP [ASP.NET]

<ma**@mailinato r.comwrote in message
news:11******** **************@ 75g2000cwc.goog legroups.com...
hello,

i work on a private enterprise intranet. we now have a business need
for opening other desktop applications, from my web app's click events.
(my application is not entirely complete, so when user's click some of
the absent-functionality, we need the desktop app to fire up). some of
these apps are started via the command-line.

is this possible? i imagine so, even if it meant working w/ ActiveX
controls or whatnot.

can anyone point me in the proper direction?
thanks,
matt
Jul 24 '06 #3
Hi Matt,

I was referring to running a desktop app only on the Web server, not the
client.

You'll have a ton of problems trying to open a Windows app on each user's
desktop from a browser link - if that's what you meant.

Ken
Microsoft MVP [ASP.NET]

<ma**@mailinato r.comwrote in message
news:11******** **************@ s13g2000cwa.goo glegroups.com.. .
excellent.

as for the user and clicking, it should be fine. the web app is mostly
finished, but where it isnt we want to open up the proper standalone
apps. so say they click on a link for an unfinished webpage, the link's
click code-behind will open the corresponding desktop app.
thanks,
matt
Ken Cox [Microsoft MVP] wrote:
>Hi Matt,

With the proper permissions, a Web page can run an application using

Process.Start( myFavoritesPath )
Process.Start( "execpgm.ex e", "param")

http://msdn2.microsoft.com/en-us/library/53ezey2s.aspx

Beware that a program that launches a GUI is going to get you into
trouble
because there's nobody around to provide user input such as text and
clicks.

If your Winapp exposes an object model via COM, you'd be better to call
those methods programmaticall y.

Ken
Microsoft MVP [ASP.NET]

<ma**@mailinat or.comwrote in message
news:11******* *************** @75g2000cwc.goo glegroups.com.. .
hello,

i work on a private enterprise intranet. we now have a business need
for opening other desktop applications, from my web app's click events.
(my application is not entirely complete, so when user's click some of
the absent-functionality, we need the desktop app to fire up). some of
these apps are started via the command-line.

is this possible? i imagine so, even if it meant working w/ ActiveX
controls or whatnot.

can anyone point me in the proper direction?
thanks,
matt

Jul 24 '06 #4

Ken Cox [Microsoft MVP] wrote:
You'll have a ton of problems trying to open a Windows app on each user's
desktop from a browser link - if that's what you meant.
it is. what sort of problems are there? i know where each desktop app
lives on the file structure of every client machine; these are
scripted-installs on unflexible office machines.

isnt this what activeX is for -- to run local (client) programs? i cant
imagine it being that difficult...

do you know which libraries will help me accomplish this?
thanks,
matt

Jul 25 '06 #5
Hi Matt,

Yes, ActiveX will do that, but users need to handle the warning dialogue
boxes that IE throws up.

If you're working in the .NET world, you'd want to explore ClickOnce too.

Ken
Microsoft MVP [ASP.NET]

<ma**@mailinato r.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
>
Ken Cox [Microsoft MVP] wrote:
>You'll have a ton of problems trying to open a Windows app on each user's
desktop from a browser link - if that's what you meant.

it is. what sort of problems are there? i know where each desktop app
lives on the file structure of every client machine; these are
scripted-installs on unflexible office machines.

isnt this what activeX is for -- to run local (client) programs? i cant
imagine it being that difficult...

do you know which libraries will help me accomplish this?
thanks,
matt

Jul 25 '06 #6

Ken Cox [Microsoft MVP] wrote:
Yes, ActiveX will do that, but users need to handle the warning dialogue
boxes that IE throws up.
not a problem. in fact, i realized that the most lo-tech solution would
do the same: <a href="file://PATH">. w/ that i can load up the other
apps.. works so far in my limited tests. just gotta figure out if i can
add command-line switches w/ that.

If you're working in the .NET world, you'd want to explore ClickOnce too.
i looked up ClickOnce, but it appears to be a type of .NET 2.0
application -- self-contained desktop winapps? on the surface i dont
see how that will help me get ASP.NET 1.1 pages to fire up client
desktop apps..?
thanks,
matt

Jul 25 '06 #7
i looked up ClickOnce, but it appears to be a type of .NET 2.0
application -- self-contained desktop winapps? on the surface i dont
see how that will help me get ASP.NET 1.1 pages to fire up client
desktop apps..?
You can push the latest versions of apps out to them. Probably not worth it
in your case.
Jul 25 '06 #8

Ken Cox [Microsoft MVP] wrote:
i looked up ClickOnce, but it appears to be a type of .NET 2.0
application -- self-contained desktop winapps? on the surface i dont
see how that will help me get ASP.NET 1.1 pages to fire up client
desktop apps..?

You can push the latest versions of apps out to them. Probably not worth it
in your case.
yeah i still dont follow there. the applications are legacy and already
exist, re-writing them in .NET isnt an option at the moment (otherwise,
i wouldnt need the links to fire them up!).
thanks,
matt

Jul 26 '06 #9

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

Similar topics

6
6886
by: dw | last post by:
Hello all, I'm having a dickens of a time calling a stored procedure on a connection. Every time I do, it generates an error "Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another." I've run the same stored procedure with the same exact list of arguments in Query Analyser in SQL Server, and it works....
3
4692
by: Arti Potnis | last post by:
Hi, I am trying to execute the DB2 load utility from a C program. lPid = fork(); execl(csExePath, csExeName,csCmd, NULL); the contents of the parameter variables are as follows:-
2
1676
by: Andrew Banks | last post by:
I've got the following code as part of a C# web form but am having problems calling a command. I create a dataset and put some data on the screen. This works fine. (relevant sample below) foreach (DataRow row in ds.Tables.Rows) { detailsbtn = new LinkButton(); //Assign a unique ID to the details control detailsbtn.ID = "details" +...
4
1594
by: Mervin Williams | last post by:
I have several tables involved in my application, but the two in question here are the company and address tables. The company table has business_address_id and mailing_address_id columns, which are both foreign keys to the address table. So, the stored procedure to which my SelectCommand points to reads as: ALTER PROCEDURE...
0
1434
by: Manuel Arroba | last post by:
asp.net oledb command parameter error calling an as400 program Hi... I have an as400 program that I can call it directly and it works: variable= "xxxx" sql = "CALL METSIGOP.SIGOPRC ('" + variable + "')" Dim con As OleDbConnection Dim cmd As OleDbCommand con = New OleDbConnection()
2
3139
by: Geler | last post by:
A theoretical question: Sorry if its a beginner question. Here is a quote from the MSDN explaning the C/C++ calling convention.. It demonstrates that the calling function is responsible to clean the stack pointer and it does it by the command "add esp,8" after returning from the called function. My questions: 1. Is the stack pointer...
7
3135
by: Andreas Reiff | last post by:
Hey! I have a managed c++ app (actually, the app is mixed managed/unmanaged, but this happens in the managed part) that dynamically generates some program in c# (with CSharpCodeProvider). The problem now is that somehow I get runtime errors when trying to pass a function (via delegates) into the c# code in order to make c# call back that...
3
8401
by: Muhammad Intikhab Qaiser | last post by:
Hi I have following code and problem in calling the oracle stored procedure "DEPTREE_FILL" Here is the Code: Command.Connection = connection; Command.CommandText="deptree_fill".ToUpper(); Command.CommandType = CommandType.StoredProcedure;
13
4475
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple command set consisting of several single letter commands which take no arguments. A few additional single letter commands take arguments:
3
2460
by: Sagar | last post by:
Hi. I am working on a project to migrate a web application from 1.1 to 2.0 Within in the DAL of the application, there is a call to below function that builds a command object for later use. Inside this function iam getting a runtime error when the command object calls the prepare method.
0
7424
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...
0
7607
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. ...
0
7772
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...
1
7376
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...
0
7709
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...
1
5297
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...
0
3415
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...
1
1841
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
0
661
bsmnconsultancy
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...

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.