Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

What does \"%1\" mean in Registry ?

What does \"%1\" mean in Registry ?

What does \"%1\" mean in Registry ?


In Registry . . .


@="\C:\\Program Files\Starstrider 2\Starstrider.exe\" \"%1\""

In the above line . . . what is   \"%1\""  saying?

Why dosn't it just end with \Starstrider.exe"  since that is the file that opens this STARSTRIDER program?

Thank you for any info.

RE: What does \"%1\" mean in Registry ?

On my computer I have this program called Lview Pro.  It is used to view pictures.  If I want to open a picture by clicking on the picture the %1 has to be there in the shortcut command line.  If the %1 is not there when I click on a picture only the program opens up.  Blank with nothing in it.  However when the %1 is there it opens up Lview pro and then loads the pic.

RE: What does \"%1\" mean in Registry ?

You got it, snip6969--
This goes back (more or less) to DOS.  I don't know how to explain this well, but I'll try.  %1 is more or less a variable.

For example, in DOS:
myprogrm.exe  argument  argument  argument
   ^ %0 ^          ^ %1 ^     ^ %2 ^      ^ %3 ^

So if the program allows for it, you might have started the program with your file automatically by typing
myprogrm.exe myfile.xxx

Windows is doing the same thing.

In windows, click MSPAINT, windows basically runs

Click on a picture, let's say picture.jpg, windows will
1) make the %1 variable = picture.jpg
2) check the registry, find that it should run C:\blah\blah\mspaint.exe
3) if that registry entry specifies %1 at the end, then windows will run
C:\blah\blah\mspaint.exe picture.jpg.  If the entry does not specify %1 at the end,
then windows stops here.

I know that this is a bit simplified, but I hope that it helps!!


Groucho said it best-  "A four year-old child could understand this! Quick! Run out and find me a four year-old child: I can't make heads nor tails out of this!"

RE: What does \"%1\" mean in Registry ?

It may be because Windows use batch files to launch programs. If you want to have Starstrider.bat file which opens your datafile.dat in the manner
Starstrider datafile.dat,
the file Starstrider.bat must contain a line
Starstrider.exe %1
%1 is place, where the first parameter of the batch file must be inserted.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close