file association execution


  1. Posts : 7
    Win7
       #1

    file association execution


    hi,
    i am new to microsoft operating system. always likes unix more :)
    anyway, i was trying to use the registry to locate the branch which holds the executable for a specific file type so i could add parameters to it.

    suppose, when i double click *.docx file, i would like winword to load the file and use the parameter /n, as follows for each *.docx:
    winword filename.docx /n

    where is the location on the registry which i can modify each file association executable?

    thanks.
      My Computer


  2. Posts : 31,249
    Windows 11 Pro x64 [Latest Release and Release Preview]
       #2

    This is slghtly complicated by the way winword is called

    on my system running office 2010 (Office 14) there is an entry at

    HKEY_CLASSES_ROOT\Word.Document.12\shell\Edit\command

    that appears to be the one you need but the actual number component may be different depending on your winword version and the settings you have for compatibility within word.

    that branch should be a good place to start though :)
      My Computers


  3. Posts : 7
    Win7
    Thread Starter
       #3

    acrobat for windows opens one instance per a file. i.e. when double clicking firstFile.pdf an acrobat instance will start and it will display the pdf file. when minimizing the instance and having double click again on the same file, firstFile.pdf, the previous (minimized) instance will get to the foreground and will display the file; whereas i wanted to have two separate instances of acrobat.

    analyzing acrobat parameters, acrobat can get the parameter of /n for executing a new instance of acrobat.

    reading your post, i knew i am looking at the right place :)
    so i went to hkey_classes_root\acrobat\shell\open\command then i've edited the string value to include the /n parameter. but it did not had the desire effect i was looking. (and i did restart my machine).

    any ideas how it should be done? why does the /n parameter is being "ignored"?
      My Computer


  4. Posts : 31,249
    Windows 11 Pro x64 [Latest Release and Release Preview]
       #4

    Not being an acrobat user I cannot give a definite answer

    However looking at the actual syntax of the winword entry

    "C:\Program Files\Microsoft Office\Office14\WINWORD.EXE" /vu "%1"

    the parameter is not enclosed in commas and is between the path and the "%1%"file variable - check that your entry follows this format as I assume that Acrobat would follow the same convention, though this is not of guaranteed.

    Hopefully someone with more acrobat expertise can confirm the syntax
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:03.
Find Us