Jump to content

passing a parameter to a program in a short cut


Recommended Posts

Guest Fran99
Posted

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

  • Replies 3
  • Created
  • Last Reply
Guest Onsokumaru
Posted

Re: passing a parameter to a program in a short cut

 

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.

 

"Fran99" <Fran99@discussions.microsoft.com> wrote in message

news:45F03869-5B22-4D27-93DF-084F80594668@microsoft.com...

> 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

Posted

Re: passing a parameter to a program in a short cut

 

Of historical note on Tue, 25 Mar 2008 18:00:01 -0700

Fran99 <Fran99@discussions.microsoft.com> 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

--

cf <cfnews@NOcharterSPAM.net>

I may be dumb, but I'm not stupid.

Terry Bradshaw

Guest Tim Slattery
Posted

Re: passing a parameter to a program in a short cut

 

Fran99 <Fran99@discussions.microsoft.com> wrote:

>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.

 

--

Tim Slattery

MS MVP(Shell/User)

Slattery_T@bls.gov

http://members.cox.net/slatteryt


×
×
  • Create New...