Creating a link with command parameters

Creating a link with command parameters

Postby Rick Lipkin » Mon Jul 21, 2008 2:05 am

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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Postby hua » Mon Jul 21, 2008 9:12 am

If I'm not mistaken, url couldn't contain spaces. Try replacing a space with %20. Maybe this post could explain it better.
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Postby Rick Lipkin » Mon Jul 21, 2008 1:03 pm

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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Postby quique » Mon Jul 21, 2008 1:35 pm

Could call a BAT and this BAT call the program with parameters
Saludos
Quique
User avatar
quique
 
Posts: 408
Joined: Sun Aug 13, 2006 5:38 am

Postby Rick Lipkin » Mon Jul 21, 2008 2:06 pm

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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Silvio.Falconi and 70 guests