passing a parameter to a program in a short cut

F

Fran99

How can i pass a parameter to a program in windows xp home.

when i click on a short cut i want a program to execute and load a file to
run with that program. (one click)

Thanks for the help
 
O

Onsokumaru

Usually it is just - "path to exe" /paramater - in the shortcut's target
field.

It might be better if you just associated the file extention you want to
open with the particular program you want it to open with , then create a
shortcut to that file.

If you want to do it with the shortcut to the program you will need to know
what parameters the program will accept, if any.

Might help if you say what program.
 
C

cf

Of historical note on Tue, 25 Mar 2008 18:00:01 -0700
Fran99 <[email protected]> scribed:

|How can i pass a parameter to a program in windows xp home.
|
|when i click on a short cut i want a program to execute and load a file to
|run with that program. (one click)
|
|Thanks for the help

I believe you could make a shortcut to the file instead, that would cause it to be opened in the program associated with its file extension.

hth
 
T

Tim Slattery

Fran99 said:
How can i pass a parameter to a program in windows xp home.

when i click on a short cut i want a program to execute and load a file to
run with that program. (one click)

It would depend on the program, but usually you just put the file's
name on the command line immediately after the program:

notepad "myfile.txt"

You'll need to enclose the filename in quotes if it includes a space
or other nonstandard character. With a filename like what I used
above, the quotes are optional.
 

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