If geeks love it, we’re on it

Howdy, Stranger!

You found the friendliest gaming & tech geeks around. Say hello!

Icrontic Expo 2014: The gaming & general geekery event you don't want to miss. Read about what's new this year and then buy tickets here.

Windows 7 Help: Change the Default Double-Click Action?

Jammin1911Jammin1911 Toronto, Ontario
edited Nov 2010 in Technology
It seems to be different than in XP where I can change this via the File Association dialog and I can't seem to find the answer online anywhere?!

When I right click on an icon the bold item is the default double click action - how do I change the default double click action in Windows 7?

Thanks!!

Comments

  • kryystkryyst Ontario, Canada
    edited Aug 2009
    I think what your looking for is in Control Panel>Default Programs. In there you can configure all your file associations and what not.
  • Jammin1911Jammin1911 Toronto, Ontario
    edited Aug 2009
    kryyst said:
    I think what your looking for is in Control Panel>Default Programs. In there you can configure all your file associations and what not.
    Thanks for the reply.

    I looked through there and I still can't seem to find what I'm looking for.

    As an example - when I double click say a .txt file it will open the file with the default program associated with that.

    In XP you could set it to do something else, say print the file instead of open it.

    Specifically what I'm trying to do is add command line parameters to VLC when I click on .avi files - I can do it in XP.
  • kryystkryyst Ontario, Canada
    edited Aug 2009
    Ok. The only way to do that in Windows 7 is to edit the registry.

    1. To set the default action, using the registry: 1. Open a CMD prompt and type:
    assoc .extension
    Example: assoc .bat
    This will return:
    .bat=batfile

    2. Use regedit.exe to navigate to:
    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell
    where batfile is the string returned from step 1.

    3. Double-click the (Default) Value Name and set the data value of this string to the name of the default action.
    Example: Set the (Default) string to edit.
    4. Exit the Registry Editor.
  • Jammin1911Jammin1911 Toronto, Ontario
    edited Aug 2009
    Hey nice find - that works nicely however it still doesn't solve my particular issue.

    I probably should have been more clear in the question - the part about changing the default action was a reference of where in XP you look to find what I'm looking for in 7.

    What I'm trying to do is leave the default action the same (open) but add arguments to the command line (in particular i want VLC player to automatically open files with a 3000ms buffer which I can do in a per file basis manually with VLC with the command lin, but I want it to happen every time I double click a file)

    Hope thats more clear
  • kryystkryyst Ontario, Canada
    edited Aug 2009
    You can do that with that reg hack. You just have to figure out the correct command string to do it.

    So if you are trying to change the startup for a .avi.
    doing assoc .avi will return the value .avi=VLC.avi

    Go back to that same classes registry area and look for VLC.avi
    then from there go to shell>Play>Command
    the default action for that should say:
    "C:\Program Files\VideoLAN\VLC\vlc.exe" --started-from-file "%1"

    add in your switches between the %1 and the "
    So (and I don't know the commands) but if the switch to set a 300ms pause was /300ms
    the command would look like:
    "C:\Program Files\VideoLAN\VLC\vlc.exe" --started-from-file "%1 /300ms"

    Again you may have to play around with it a little to get it working right, but that's the basics. My syntax may be slightly off but just play around and you'll get it. You can't muck anything up. If you are worried save that registry key first before you make any changes.
  • Jammin1911Jammin1911 Toronto, Ontario
    edited Aug 2009
    ahh very cool

    thanks so much
  • kryystkryyst Ontario, Canada
    edited Aug 2009
    Welcome. It was a learning process for me to.
  • edited Jun 2010
    Hey kryyst, I read your answer and it worked great for me. I was so greatful i registered just to thank you :) so thanks, i was looking for a solution for a long time (ever since i got windows 7)
  • kryystkryyst Ontario, Canada
    edited Jun 2010
    Glad it helped and welcome to the forum!
  • edited Nov 2010
    when i double click on any icon it opens but i want to change it as per my reqirement like on double click explore should be the first option ,HOW?????
  • kryystkryyst Ontario, Canada
    edited Nov 2010
    Right click on the file in question. Choose open with, select the program you want to be the default for that file time - note this will change it for all files of that extension. Then below the program selection box put a check mark in the 'always open with' box.
Sign In or Register to comment.