Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / General MS Outlook Questions / September 2007

Tip: Looking for answers? Try searching our database.

Entering Command Line parameters with file:// Hyperlinks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 19 Sep 2007 16:18 GMT
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. H. Muffman - 19 Sep 2007 23:13 GMT
>I am using Outlook 2003.
>
[quoted text clipped - 17 lines]
> 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?

Signature

f.h.

Steve - 20 Sep 2007 03:22 GMT
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

> >I am using Outlook 2003.
> >
[quoted text clipped - 21 lines]
> arguments.  Are you able to get that URL to work in *any* program,
> forgetting Outlook entirely?
F. H. Muffman - 20 Sep 2007 04:45 GMT
>> >I am using Outlook 2003.
>> >
[quoted text clipped - 29 lines]
> 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.

Signature

f.h.

Brian Tillman - 19 Sep 2007 23:14 GMT
> 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.
Signature

Brian Tillman [MVP-Outlook]

Steve - 20 Sep 2007 03:20 GMT
Too bad. I thought that might be the case.

Thank You

> > 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.
Brian Tillman - 20 Sep 2007 14:24 GMT
> Too bad. I thought that might be the case.

Odd.  You accept this answer from me, but not from Mr. Muffman.
Signature

Brian Tillman [MVP-Outlook]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.