Page 1 of 1

Creating a link with command parameters

Posted: Mon Jul 21, 2008 2:05 am
by Rick Lipkin
To All

I am trying to create a url link with the path+executable name and a command line parameter .. here is what I am trying to do

cLINK := "\\webdev\dev\pmow32.exe"
cPARAM := " /PROJECTEID= 6084460364"

This is the result .. however the underline link ends after the .exe
\\webdev\pmo\pmow32.exe /PROJECTEID= 6084460364

I want to create a link that can be clicked on ( in an e-mail ) and have it
execute which will include the entire url parameters and all.

Any ideas ??

Rick Lipkin
SC Dept of Health, USA

Posted: Mon Jul 21, 2008 9:12 am
by hua
If I'm not mistaken, url couldn't contain spaces. Try replacing a space with %20. Maybe this post could explain it better.

Posted: Mon Jul 21, 2008 1:03 pm
by Rick Lipkin
Hua

Adding %20 to the line will allow the link to be created .. but the link will not open .. apparently %20 will work on an http:// line but not execute on a \\server\folder\my.exe line.

I am still researching.

Rick Lipkin

Posted: Mon Jul 21, 2008 1:35 pm
by quique
Could call a BAT and this BAT call the program with parameters

Posted: Mon Jul 21, 2008 2:06 pm
by Rick Lipkin
Quique

I have considered a batch file .. and the batch file does work. For this program I am sending an e-mail notification to various project sponsors and embeded in the e-mail is the url link :

\\server\folder\my.exe

and that works GREAT .. however, the requirements of this application dictate that the person receiving the link be taken directly to a specific record in the database .. /p=12345555 which again programatically I have working ..

To make this work, I would have to create a batch file and attach it to the e-mail that gets sent to all the sponsors .. and they would have to run the attachment .. which is clumsy and I am sending the attatchment via SMTP and I am having difficulty with SMTP in delivering the file as text instead of Hex and Hex is useless.

Rick