473,385 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Command Line parameters windows app hyperlink

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 yes then what is the best way of doing
this.

I also tried to pass the parameter by using a ? in place of a space but then
the parameters inside the .exe had lot of junk attached to it and also the
application could not read the normal .config as it started look for a
different .config file dependent upon the parameter being passed. I can read
the command line parameters in a windows .net app when I pass them through
the cmd window but not through a Hyperlink.

Any help would be highly appreciated.

Tarun.


Nov 21 '05 #1
5 4587
Tarun,

I do not know what you are after however it sound for me that a webservice
can probably do a job for you.

Have a look at this walkthrough which is very good.
http://msdn.microsoft.com/library/de...alkthrough.asp

I hope it gives you some ideas for a simple sollution for your problem.

Cor
Nov 21 '05 #2
"Tarun Mitra" <TM****@skm.com.au> schrieb:
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 yes then what is the best way of doing
this.


Untested: Replace the " " between the path and the argument with "%32".

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #3
Cor,

I tried this, it did not work. The URL bacame
http://localhost/syskiosk/Test.exe%32John the web browser said page cannot
found.

Tarun.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eJ****************@TK2MSFTNGP09.phx.gbl...
Tarun,

I do not know what you are after however it sound for me that a webservice
can probably do a job for you.

Have a look at this walkthrough which is very good.
http://msdn.microsoft.com/library/de...alkthrough.asp
I hope it gives you some ideas for a simple sollution for your problem.

Cor

Nov 21 '05 #4
Hi Cor,

I am trying to place a hyperlink to a .net windows application placed on
the server so then clients can access it. We have a specific requirement to
display a windows forms based application when a user clicks on the link.
Everything works fine the only issue is that I am not able to pass
paremeters to it through a Hyperlink. I can pass parameters to it through
the command line. If there is an alternate way of doing this please let me
know.

Tarun.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eJ****************@TK2MSFTNGP09.phx.gbl...
Tarun,

I do not know what you are after however it sound for me that a webservice
can probably do a job for you.

Have a look at this walkthrough which is very good.
http://msdn.microsoft.com/library/de...alkthrough.asp
I hope it gives you some ideas for a simple sollution for your problem.

Cor

Nov 21 '05 #5
Tarun,

When you look in the VisualBasic resource kit than you should be able to see
how Microsoft did it with that.

I think however that this will more and more be protected.

Cor
Nov 21 '05 #6

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

Similar topics

7
by: michael | last post by:
I have a question about Windows based python (2.4 and later). For example, if I make a script called test.py like so: import sys print sys.argv then run it: python test.py this is a test
2
by: Erik Wikström | last post by:
This is probably a stupid question but is there any easy way to get the command line parameters in a windows form? As it is now I copy the parameters into a statis string array belonging to the...
5
by: Jarod | last post by:
Hey I have already written a program that has a user interface, but I would like to add some command line interface too. So if the user run it like: program.exe paramater1 The program do...
1
by: Peter Rilling | last post by:
I have an EXE that I would like to be able to run from either the command-line or as a windows service. Is there a way that I can tell which context the program is running in? Basically, if it...
1
by: slonocode | last post by:
I have created a filter in Eudora email program that will notify a program when the criteria is met. For instance if the filter criteria is met it will send the following command: ...
5
by: clsmith66 | last post by:
I've been asked to find out if a project is possible, but I'm not having much luck finding the information I need, I hope some one can help. I need to see if I can build a windows service on the...
6
by: lavu | last post by:
How can I debug a C# GUI app which is invoked from the command line ? Thanks in advance.
2
by: explode | last post by:
I made nova oledbdataadapter select update insert and delete command and connection veza. dataset is Studenti1data, I made it by the new data source wizard,and made datagridview and bindingsource...
11
by: wangzq | last post by:
Hello, I'm passing command line parameters to my browser, I need to pass the complete command line as-is, for example: test.py "abc def" xyz If I use ' '.join(sys.argv), then the double...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.