Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

invoking local exe with params via hyperlink

 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

here is my requirement. i want to invoke a local exe from hyperlink. Now, i know that it would not be good and this and that but its really a internal local sort of requirement and nobody would care about sophistication of that application. The path to the exe on client machines is fix and you can assume other neccessary things.

My problem is, how to pass parameters to the exe file? Even if I tell users that you can "open" exe when browser prompts for open/save , how can I pass parameters that exe needs? Parameters are fixed but that exe is not mine so I can't change exe to have fixed input always you know.

Probably it might be helpful if I say I want following,
1. I know mozilla's exe path on local machine
2. I want to invoke mozilla.exe -edit 'filename' (to invoke html editor you know)
OR I want to do,
- invoke firefox.exe -profile "profile" u know...

Please suggest some ideas if you think I can do this somehow.

Thanks
Maulin
 
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not an expert, but I would recommend looking into VB script. Since this application is expected to be proprietary anyway, then vb script might be a good way to go. You would probably want to check out a vb forum for more information on how to write that. I have used VB script to do some pretty OS specific operations in the past. Besides, I am sure that is how MS would like it to be
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried to use batch files as link targets? (Migth not work either)

About browser path. I think that you can't dynamically investigate location of browser files path, because of security reasons (browsers allows do only things that matches it's sandbox). If path fixed or can be saved for particular user than it is not a problem.
[ February 27, 2005: Message edited by: Eugene Lucash ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic