Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: file association execution

28 May 2010   #1
BigJohnny

Win7
 
 
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 System SpecsSystem Spec
.
28 May 2010   #2
Barman58

Windows 10 Pro x64 x3, Ubuntu
 
 

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 System SpecsSystem Spec
28 May 2010   #3
BigJohnny

Win7
 
 

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 System SpecsSystem Spec
.

28 May 2010   #4
Barman58

Windows 10 Pro x64 x3, Ubuntu
 
 

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 System SpecsSystem Spec
Reply

 file association execution




Thread Tools




Similar help and support threads
Thread Forum
Getting input data after execution of batch file.
My batch file code is like this: @echo off C:\Windows\System32\netsh.exe wlan set hostednetwor mode=allow ssid=User_Name key=password eyUsage=persistent In this code the "User_name" and "password" fields I want the input from the user after running the batch file. How do I make it...
General Discussion
Batch File execution problem
I have created a batch program as listed below. It is supposed to read all MP3 files from given folderMP3_CDs_12GB recursively and write to three folders B0 (first 999 files), B1 (next 999 files) and B2 (balance of about 2,800 files). It should also write three text files with the File serial...
General Discussion
Set file association for a file (dds) to Shell Common that execs it!
I accidentally set the default file format for a dds (DirectDraw Surface) to Windows shell common. It tries to execute it but obviously fails giving this error: I've tried everything. Modified registry keys, use slightly different solutions, but I just can't get it working. Does anyone have a fix...
General Discussion
Batch File Execution error
Please I need help! I have been on this stuff for over hours now..and no headway out. I want to write a batch script that can run tshark as shown below...
Performance & Maintenance
How do I change a file's file type (not only file association)?
I need to change a zip file to an epub file. I have heard this can be done, but when I add the .epub after the file name, I notice the file is still actually zip type file when I right click properties. This is causing a problem when I try to open it in in different ebook reader programs. I...
General Discussion
Mysterious File execution attempt on startup.
Not sure if this is the result of an attempted virus attack or ? A few days ago I began getting this open file attempt during a system start up. Other then an irritant, it doesn't seem be posing a problem. Running scans on my system doesn't find anything overly interesting but I'd like to...
Performance & Maintenance


Our Sites

Site Links

About Us

Find 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 10:52.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App