Entering Command Line parameters with file:// Hyperlinks

G

Guest

I am using Outlook 2003.

I am having trouble trying to use a file:// Hyperlink to run an executable
file and put a command line parameter at the end of the Hyperlink . Without
the added command line parameters, the file:// runs the executable file
correctly. When I add a command line parameter or two, I get the message
"Cannot find file .... Make sure the path or Internet address is correct".

I have tried putting the path in double quotes such as:
file://"c:\directory\filename.exe /param1". I have also tried using %20 for
the spaces such as: file://c:\directory\filename.exe%20/param1. I have also
tried the Mail Format checkbox using Word 2003 as the email editor, without
success.

I am the developer of the app, so I took the "/" out of the parameter
because it seems like Outlook is turning the "/" around into a "\" when I
click on it.

Any Ideas?

Thank you for your help.
 
F

F. H. Muffman

Steve said:
I am using Outlook 2003.

I am having trouble trying to use a file:// Hyperlink to run an executable
file and put a command line parameter at the end of the Hyperlink .
Without
the added command line parameters, the file:// runs the executable file
correctly. When I add a command line parameter or two, I get the message
"Cannot find file .... Make sure the path or Internet address is correct".

I have tried putting the path in double quotes such as:
file://"c:\directory\filename.exe /param1". I have also tried using %20
for
the spaces such as: file://c:\directory\filename.exe%20/param1. I have
also
tried the Mail Format checkbox using Word 2003 as the email editor,
without
success.

I am the developer of the app, so I took the "/" out of the parameter
because it seems like Outlook is turning the "/" around into a "\" when I
click on it.


I'm about 90% sure that the file:// URL type won't take command-line
arguments. Are you able to get that URL to work in *any* program,
forgetting Outlook entirely?
 
B

Brian Tillman

Steve said:
I am having trouble trying to use a file:// Hyperlink to run an
executable file and put a command line parameter at the end of the
Hyperlink .

The file:// URL doesn't support parameters, as far as I can tell.
 
G

Guest

I thought that the file:// hyperlink might not support command line
parameters. If I don't use Outlook (Start Run or cmd line), I am able to get
it to work great with the command line parameters included.


Thank You
 
F

F. H. Muffman

Steve said:
I thought that the file:// hyperlink might not support command line
parameters. If I don't use Outlook (Start Run or cmd line), I am able to
get
it to work great with the command line parameters included.


Well, yeah, start - run isn't using the file:// url type. I mean putting
the url format in *any* program outside of outlook. It isn't an Outlook
thing. file:// urls will work in most any applications that recognize it as
a URL. I was just trying to say that this isn't an Outlook issue, unless,
of course, you can get the file:// url to work with a command line parameter
*outside* of Outlook.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top