Pass argument from Firefox to a script

I'm trying to find a way to reach this result: User opens a local file in Firefox where he has to choose between A, B or C (buttons). The user's choice influences the behaviour of a script to launch the correct command-line command (let's say echo A, or echo B or echo C). The whole thing is contained within a thumbdrive and runs in Windows XP & 7.

Any idea on how to do this, if it's possible at all?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michel PlungjanIT ExpertCommented:
Have you considered running a simple web server on the box that needs to run the scripts?
jiiins2Author Commented:
Not yet. Can it be done on a usb thumbdrive? The fact is that the users should be able to carry around the whole thing easily.
Michel PlungjanIT ExpertCommented:
It can actually. Please give more details
jiiins2Author Commented:
Very simple: depending on the user's selection in the browser (link, button, or whatever), an application must be launched with a different argument, i.e. app.exe -A, app.exe -B or app.exe -C.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.