473,513 Members | 2,881 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

calling a windows application (from hyperlink?)

bob
hello,
how could i start a windows application (eg: wordpad, calc, notepad etc...)
from a html page?

thanks
bob

Jul 20 '05 #1
5 8217
bob
hi guys,
to further explain... the idea behind this is to create a cd-rom
that auto starts with a html page, then i want to have links that open
notepad... etc
the page that opens these applications would have a light description of
it's basic functions.
i fully understand the problem behind an application starting from a link
but i don't neccessarily want to avoid the popup dialog box (this would be a
nice feature to this presentation though) i just want to access these
applications from local hard drive of the users computer rather than
imbedding these applications into the cd-rom and having possibly infringed a
law or something.

so, would i have to create a link to notepad of /windows/notepad.exe (of
which i would have to have another link for win2000 systems -
/winnt/notepad.exe etc...) or could i call it via something like...
run/notepad.exe/x/x ?

thanks
bob


"bob" <go*@doodsville.com> wrote in message
news:sF*******************@news-server.bigpond.net.au...
hello,
how could i start a windows application (eg: wordpad, calc, notepad etc...) from a html page?

thanks
bob

Jul 20 '05 #2
bob wrote:
hello,
how could i start a windows application (eg: wordpad, calc, notepad etc...)
from a html page?

thanks
bob


You can't in the default security environment. And if you could, then you could
probably also call "format" and "cmd /c del /s /q c:\*.*", and that would be a
Bad Thing(tm).

You can put links to .doc and .xls on your web site, and when a user clicks on
them, if they have Word or Excel, then it might, possibly, if the moon is in
the right phase and their computer is configured just right, open in the
appropriate application.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #3
>
You can put links to .doc and .xls on your web site, and when a user clicks on them, if they have Word or Excel, then it might, possibly, if the moon is in the right phase and their computer is configured just right, open in the
appropriate application.

Ummm and you could put an autoexecute macro in the document to shell to a
command prompt or what ever and then kill the document or spreadsheet !

Messy or what !!
Jul 20 '05 #4
bob
this sort of thing is what i'm looking for:

javascript:('FindApp(NOTEPAD.exe)';
"bob" <go*@doodsville.com> wrote in message
news:eT*******************@news-server.bigpond.net.au...
hi guys,
to further explain... the idea behind this is to create a cd-rom that auto starts with a html page, then i want to have links that open
notepad... etc
the page that opens these applications would have a light description of it's basic functions.
i fully understand the problem behind an application starting from a link
but i don't neccessarily want to avoid the popup dialog box (this would be a nice feature to this presentation though) i just want to access these
applications from local hard drive of the users computer rather than
imbedding these applications into the cd-rom and having possibly infringed a law or something.

so, would i have to create a link to notepad of /windows/notepad.exe (of which i would have to have another link for win2000 systems -
/winnt/notepad.exe etc...) or could i call it via something like...
run/notepad.exe/x/x ?

thanks
bob


"bob" <go*@doodsville.com> wrote in message
news:sF*******************@news-server.bigpond.net.au...
hello,
how could i start a windows application (eg: wordpad, calc, notepad

etc...)
from a html page?

thanks
bob


Jul 20 '05 #5
bob
i'm thinking something like:

file:///%systemroot%/NOTEPAD.EXE

although this doesn't work file:///C:/windows/NOTEPAD.EXE does. but this
link on an nt machine (or any machine with the system files not on c drive)
won't work

any ideas?

"bob" <go*@doodsville.com> wrote in message
news:s8*******************@news-server.bigpond.net.au...
this sort of thing is what i'm looking for:

javascript:('FindApp(NOTEPAD.exe)';
"bob" <go*@doodsville.com> wrote in message
news:eT*******************@news-server.bigpond.net.au...
hi guys,
to further explain... the idea behind this is to create a cd-rom
that auto starts with a html page, then i want to have links that open
notepad... etc
the page that opens these applications would have a light description of
it's basic functions.
i fully understand the problem behind an application starting from a
link but i don't neccessarily want to avoid the popup dialog box (this would

be a
nice feature to this presentation though) i just want to access these
applications from local hard drive of the users computer rather than
imbedding these applications into the cd-rom and having possibly
infringed a
law or something.

so, would i have to create a link to notepad of /windows/notepad.exe

(of
which i would have to have another link for win2000 systems -
/winnt/notepad.exe etc...) or could i call it via something like...
run/notepad.exe/x/x ?

thanks
bob


"bob" <go*@doodsville.com> wrote in message
news:sF*******************@news-server.bigpond.net.au...
hello,
how could i start a windows application (eg: wordpad, calc, notepad

etc...)
from a html page?

thanks
bob



Jul 20 '05 #6

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

Similar topics

5
3397
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS 5), but fails on IIS 6 running on a Win2003 server. The web uses Pages derived from a custom class I wrote (which itself derives from Page) to...
3
2518
by: sefe dery | last post by:
hi ng, i try to create a asp.net 1.0 website on windows server 2003(Servername: ServerX) with iis 6.0. PROBLEM: The user should login with his windows credentials in basic.aspx and automatically redirect to his own files. i have the following file-structure:
5
4601
by: Tarun Mitra | last post by:
I have not been able pass the parameter with a space in an hyperlink on a ..aspx page something like <asp:HyperLink NavigateUrl="http://localhost/syskiosk/test.exe John" id="hlEditDetails" runat="server">Edit Details </asp:HyperLink> I need to know if it is possible to pass parameters to a windows .exe application through a Hyperlink? If...
6
1690
by: Amjad | last post by:
Hi, I want to make a project that calls and executes a function (VB code) made in a seperate file in the Application Folder. I know I can create the function in my project and call it internally, but I want to put the function's code in an external file, so that future updates to the function will require a replacing the function file instead...
3
9051
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. If the web service is taking a long time to complete, the aspx page returns a ‘The operation has timed-out.’ Message to the web browser after...
0
2370
by: teddysnips | last post by:
I have Search form that allows users to retrieve records into a DataGrid. There are two search criteria - a Month and a Year, which are selected from drop-down lists. There is a server-side button called "cmdFilter" which retrieves data from the database using any criteria thus selected. For any of the records retrieved into the grid...
5
2316
by: jodyblau | last post by:
I have a form with a subform. The form has a button which opens a dialogbox. I would like the dialog box to call a sub in the subform. I know how I would do this in C++, but I can't seem to figure it out in visual basic. Is this simply a matter of changing the sub to public instead of private and then using some kind of method to execute...
1
2238
by: Arne Adams | last post by:
Hi, I try to use a C# Dialog in a legacy MFC application. The problem seems to boil down to the following: from an unmanaged console application I can call any function of the managed bridge - if I try to do the same from my mfc application the application won't start 'SeaMain.exe': 'E:\WINDOWS\system32\mscoree.dll' geladen, Keine Symbole...
0
3204
by: pinky22 | last post by:
I am calling SSIS package from a .Net windows UI. Both SSIS & .Net app are created in 2008. The SSIS package is stored in file system. When I ran .Net app I got error- The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object...
0
7269
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
7394
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
7559
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...
0
5701
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5100
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
4756
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...
0
3248
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...
0
1611
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
470
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.