Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > HREF for executable file with parameter

Reply
Thread Tools

HREF for executable file with parameter

 
 
Martin Wulfe
Guest
Posts: n/a
 
      01-20-2009
I am writing an application that generates HTML as the body of an
email. In it, I want to include a link to an executable, but I need
to run the executable with a parameter, as you would from the command
line:

c:\>MyApp.exe parm1

The problem is I cannot figure out how to include the parameter in the
HREF. When I try

<A HREF="C:\MyApp.exe parm1">

or

<A HREF="C:\MyApp.exe%20parm1>

I get an error. Any help out there?

TIA,
Martin
 
Reply With Quote
 
 
 
 
Adrienne Boswell
Guest
Posts: n/a
 
      01-21-2009
Gazing into my crystal ball I observed Martin Wulfe <>
writing in news::

> I am writing an application that generates HTML as the body of an
> email. In it, I want to include a link to an executable, but I need
> to run the executable with a parameter, as you would from the command
> line:
>
> c:\>MyApp.exe parm1
>
> The problem is I cannot figure out how to include the parameter in the
> HREF. When I try
>
><A HREF="C:\MyApp.exe parm1">
>
> or
>
><A HREF="C:\MyApp.exe%20parm1>
>
> I get an error. Any help out there?
>
> TIA,
> Martin
>


It's really a security issue - imagine c:\delete *.*

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 
Reply With Quote
 
 
 
 
Adrian
Guest
Posts: n/a
 
      01-21-2009

"Martin Wulfe" <> wrote in message
news:...
>I am writing an application that generates HTML as the body of an
> email. In it, I want to include a link to an executable, but I need
> to run the executable with a parameter, as you would from the command
> line:
>
> c:\>MyApp.exe parm1
>
> The problem is I cannot figure out how to include the parameter in the
> HREF. When I try
>
> <A HREF="C:\MyApp.exe parm1">
>
> or
>
> <A HREF="C:\MyApp.exe%20parm1>
>
> I get an error. Any help out there?
>
> TIA,
> Martin

*********************************************
What this sounds to me like is, that you want to create an

application that handles emails, and that in the email you

want to embed the activation of a program. That sounds

malwarish to me, or have I misunderstood your intensions?

Adrian.


 
Reply With Quote
 
Adrian
Guest
Posts: n/a
 
      01-21-2009
"Adrienne Boswell" <> wrote in message
news:Xns9B99DCB287EA9arbpenyahoocom@207.115.17.102 ...
> Gazing into my crystal ball I observed Martin Wulfe <>
> writing in news::
>
>> I am writing an application that generates HTML as the body of an
>> email. In it, I want to include a link to an executable, but I need
>> to run the executable with a parameter, as you would from the command
>> line:
>>
>> c:\>MyApp.exe parm1
>>
>> The problem is I cannot figure out how to include the parameter in the
>> HREF. When I try
>>
>><A HREF="C:\MyApp.exe parm1">
>>
>> or
>>
>><A HREF="C:\MyApp.exe%20parm1>
>>
>> I get an error. Any help out there?
>>
>> TIA,
>> Martin
>>

>
> It's really a security issue - imagine c:\delete *.*
>
> --
> Adrienne Boswell at Home
> Arbpen Web Site Design Services
> http://www.cavalcade-of-coding.info
> Please respond to the group so others can share
>

********************************************
Looking at your beautiful work, this came up:

XML Parsing Error: junk after document element
Location: http://www.visionforglendale.com/
Line Number 166, Column 1:<script type="text/javascript"
src="http://analytics.hosting24.com/count.php"></script>
^
Adrian


 
Reply With Quote
 
Adrienne Boswell
Guest
Posts: n/a
 
      01-21-2009
Gazing into my crystal ball I observed "Adrian" <> writing in
news:4976c736$0$24411$:

>> http://www.cavalcade-of-coding.info
>> Please respond to the group so others can share
>>

> ********************************************
> Looking at your beautiful work, this came up:
>
> XML Parsing Error: junk after document element
> Location: http://www.visionforglendale.com/
> Line Number 166, Column 1:<script type="text/javascript"
> src="http://analytics.hosting24.com/count.php"></script>
> ^
> Adrian
>


Thank you, Adrian. I always forget to turn that stupid thing off!
I'll have to do it tomorrow, though, the servers are down for
maintenance.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 
Reply With Quote
 
Adrienne Boswell
Guest
Posts: n/a
 
      01-21-2009
Gazing into my crystal ball I observed "Adrian" <> writing in
news:4976c736$0$24411$:

> XML Parsing Error: junk after document element
> Location: http://www.visionforglendale.com/
> Line Number 166, Column 1:<script type="text/javascript"
> src="http://analytics.hosting24.com/count.php"></script>
> ^
> Adrian
>


Fixed. Thank you again.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 
Reply With Quote
 
Martin Wulfe
Guest
Posts: n/a
 
      01-21-2009
On Wed, 21 Jan 2009 06:46:43 +0100, "Adrian" <> wrote:

>
>"Martin Wulfe" <> wrote in message
>news:.. .
>>I am writing an application that generates HTML as the body of an
>> email. In it, I want to include a link to an executable, but I need
>> to run the executable with a parameter, as you would from the command
>> line:
>>
>> c:\>MyApp.exe parm1
>>
>> The problem is I cannot figure out how to include the parameter in the
>> HREF. When I try
>>
>> <A HREF="C:\MyApp.exe parm1">
>>
>> or
>>
>> <A HREF="C:\MyApp.exe%20parm1>
>>
>> I get an error. Any help out there?
>>
>> TIA,
>> Martin

>*********************************************
>What this sounds to me like is, that you want to create an
>
>application that handles emails, and that in the email you
>
>want to embed the activation of a program. That sounds
>
>malwarish to me, or have I misunderstood your intensions?
>
>Adrian.
>

No, it's not malware. It's an internal application that will be used
by only about 10-15 people, to keep track of development of an
internal software package. The parameter attacheed to the end of the
exe name will be the record ID in a database that will be opened when
the recipient clicks on the link.
 
Reply With Quote
 
Adrian
Guest
Posts: n/a
 
      01-21-2009

"Martin Wulfe" <> wrote in message
news:...
> On Wed, 21 Jan 2009 06:46:43 +0100, "Adrian" <> wrote:
>
>>
>>"Martin Wulfe" <> wrote in message
>>news:. ..
>>>I am writing an application that generates HTML as the body of an
>>> email. In it, I want to include a link to an executable, but I need
>>> to run the executable with a parameter, as you would from the command
>>> line:
>>>
>>> c:\>MyApp.exe parm1
>>>
>>> The problem is I cannot figure out how to include the parameter in the
>>> HREF. When I try
>>>
>>> <A HREF="C:\MyApp.exe parm1">
>>>
>>> or
>>>
>>> <A HREF="C:\MyApp.exe%20parm1>
>>>
>>> I get an error. Any help out there?
>>>
>>> TIA,
>>> Martin

>>*********************************************
>>What this sounds to me like is, that you want to create an
>>
>>application that handles emails, and that in the email you
>>
>>want to embed the activation of a program. That sounds
>>
>>malwarish to me, or have I misunderstood your intensions?
>>
>>Adrian.
>>

> No, it's not malware. It's an internal application that will be used
> by only about 10-15 people, to keep track of development of an
> internal software package. The parameter attacheed to the end of the
> exe name will be the record ID in a database that will be opened when
> the recipient clicks on the link.

*********************************************
Can't you have a loop in which the status of a shared file
is perpetually checked, which the user elswhere in the
network can modify? (There could be a file each.)
The changed status could activate whatever you want
on, or from the central box.

Adrian





 
Reply With Quote
 
Martin Wulfe
Guest
Posts: n/a
 
      01-21-2009
On Wed, 21 Jan 2009 13:58:59 +0100, "Adrian" <> wrote:

>
>"Martin Wulfe" <> wrote in message
>news:.. .
>> On Wed, 21 Jan 2009 06:46:43 +0100, "Adrian" <> wrote:
>>
>>>
>>>"Martin Wulfe" <> wrote in message
>>>news: ...
>>>>I am writing an application that generates HTML as the body of an
>>>> email. In it, I want to include a link to an executable, but I need
>>>> to run the executable with a parameter, as you would from the command
>>>> line:
>>>>
>>>> c:\>MyApp.exe parm1
>>>>
>>>> The problem is I cannot figure out how to include the parameter in the
>>>> HREF. When I try
>>>>
>>>> <A HREF="C:\MyApp.exe parm1">
>>>>
>>>> or
>>>>
>>>> <A HREF="C:\MyApp.exe%20parm1>
>>>>
>>>> I get an error. Any help out there?
>>>>
>>>> TIA,
>>>> Martin
>>>*********************************************
>>>What this sounds to me like is, that you want to create an
>>>
>>>application that handles emails, and that in the email you
>>>
>>>want to embed the activation of a program. That sounds
>>>
>>>malwarish to me, or have I misunderstood your intensions?
>>>
>>>Adrian.
>>>

>> No, it's not malware. It's an internal application that will be used
>> by only about 10-15 people, to keep track of development of an
>> internal software package. The parameter attacheed to the end of the
>> exe name will be the record ID in a database that will be opened when
>> the recipient clicks on the link.

>*********************************************
>Can't you have a loop in which the status of a shared file
>is perpetually checked, which the user elswhere in the
>network can modify? (There could be a file each.)
>The changed status could activate whatever you want
>on, or from the central box.
>
>Adrian
>
>
>
>

Actually, the solution I'm thinking of is similar to that. The
application (which can sit in any of 10 - 15 desktops) will write a
script file named, for example domyapp123.vbs, which will sit on the
LAN, and will start the app with 123 as its argument. The email the
app sends would have an HREF pointing to that file. Not very
elligent, but it should work. The approach of adding an argument in
the HTML is a whole lot cleaner, ifI can get it to work.

Martin
 
Reply With Quote
 
Adrian
Guest
Posts: n/a
 
      01-21-2009

"Martin Wulfe" <> wrote in message
news:...
> On Wed, 21 Jan 2009 13:58:59 +0100, "Adrian" <> wrote:
>
>>
>>"Martin Wulfe" <> wrote in message
>>news:. ..
>>> On Wed, 21 Jan 2009 06:46:43 +0100, "Adrian" <> wrote:
>>>
>>>>
>>>>"Martin Wulfe" <> wrote in message
>>>>news: m...
>>>>>I am writing an application that generates HTML as the body of an
>>>>> email. In it, I want to include a link to an executable, but I need
>>>>> to run the executable with a parameter, as you would from the command
>>>>> line:
>>>>>
>>>>> c:\>MyApp.exe parm1
>>>>>
>>>>> The problem is I cannot figure out how to include the parameter in the
>>>>> HREF. When I try
>>>>>
>>>>> <A HREF="C:\MyApp.exe parm1">
>>>>>
>>>>> or
>>>>>
>>>>> <A HREF="C:\MyApp.exe%20parm1>
>>>>>
>>>>> I get an error. Any help out there?
>>>>>
>>>>> TIA,
>>>>> Martin
>>>>******************************************** *
>>>>What this sounds to me like is, that you want to create an
>>>>
>>>>application that handles emails, and that in the email you
>>>>
>>>>want to embed the activation of a program. That sounds
>>>>
>>>>malwarish to me, or have I misunderstood your intensions?
>>>>
>>>>Adrian.
>>>>
>>> No, it's not malware. It's an internal application that will be used
>>> by only about 10-15 people, to keep track of development of an
>>> internal software package. The parameter attacheed to the end of the
>>> exe name will be the record ID in a database that will be opened when
>>> the recipient clicks on the link.

>>*********************************************
>>Can't you have a loop in which the status of a shared file
>>is perpetually checked, which the user elswhere in the
>>network can modify? (There could be a file each.)
>>The changed status could activate whatever you want
>>on, or from the central box.
>>
>>Adrian
>>
>>
>>
>>

> Actually, the solution I'm thinking of is similar to that. The
> application (which can sit in any of 10 - 15 desktops) will write a
> script file named, for example domyapp123.vbs, which will sit on the
> LAN, and will start the app with 123 as its argument. The email the
> app sends would have an HREF pointing to that file. Not very
> elligent, but it should work. The approach of adding an argument in
> the HTML is a whole lot cleaner, ifI can get it to work.
>
> Martin

*********************************************
Elegance can give a deveoper nightmares
As long as it works bug free why worry, because
by the looks of it, it is a temporary job anyway.

Adrian


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BASE HREF and A HREF="#" onclick="..." Vincent van Beveren Javascript 2 07-06-2006 08:33 AM
href="javascript:func()" vs href="#" onclick="javascript:func()" CRON HTML 24 06-20-2006 08:05 PM
onClick method question (this.href and document.location.href) yogesh.bhardwaj@gmail.com Javascript 2 02-03-2005 02:38 PM
difference between location.href and window.location.href? saiho.yuen Javascript 3 09-14-2004 06:51 PM
Problem: Setting MSIE iframe innerHTML change relative href/src to absolute href/src Soren Vejrum Javascript 4 07-05-2003 01:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57