Jump to content

the meaning of "%1"%*


Recommended Posts

In these two websites :



the following symbol  "%1" %*   is mentioned . What is it ? could you , please ,  explain to me what is it exactly ?

Best regards


Edited by hisoka
Link to comment
Share on other sites

I didn't watch the video, but it sounds like those are placeholders for what Windows will display in a context menu when you right-click on a file.  They are placeholders for command names, program names, etc, that change depending on the file that was clicked.

Link to comment
Share on other sites

In the second link the following is mentioned :




7.With exefileselected, right-click (Default) and click Modify…

8.Change the Value data: to "%1" %*

9.Browse to and then click on the following registry key:


10.With openselected, right-click (Default) and click Modify…

11.Change the Value data: to "%1" %*


why should a name of a command or a program , in the context menu , changed to "%1" %*  in order to avoid this error :

can’t open .exe files in Windows 7


I do not understand . I think you should take a look at the video , which is 2 minutes and 50 seconds , short , in order for you  to be able to answer my question .

Link to comment
Share on other sites

Those are placeholders.  When you run file X, that is %1, it uses the actual filename.  I'm assuming that %* means every other argument.  It's just saying to run the actual file and pass whatever arguments you have to it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...