FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Creating a link with command parameters
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Creating a link with command parameters
Posted: Mon Jul 21, 2008 02: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

Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Creating a link with command parameters
Posted: Mon Jul 21, 2008 09: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.
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Creating a link with command parameters
Posted: Mon Jul 21, 2008 01: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

Posts: 408
Joined: Sun Aug 13, 2006 05:38 AM
Creating a link with command parameters
Posted: Mon Jul 21, 2008 01:35 PM

Could call a BAT and this BAT call the program with parameters

Saludos

Quique
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Creating a link with command parameters
Posted: Mon Jul 21, 2008 02: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

Continue the discussion