Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Stata 11 64-bit no longer runs my automatically

From   John LeBlanc <>
Subject   Re: st: Stata 11 64-bit no longer runs my automatically
Date   Thu, 03 Feb 2011 00:06:58 -0400

Thanks Jeff & Gary,

Here's what I discovered. I had to modify the registry manually instead of using tools available prior to Windows 7. as well, I had to modify a this key, which differs from the .dta one:

Key: My Computer\HKEY_CURRENT_USER\Software\Classes\Applications\Stata-64.exe\shell\open\command Value: "C:\Program Files (x86)\Stats\Stata\Stata-64.exe" do "C:\Program Files (x86)\Stats\Stata\john\" "%1"

As far as I can see the old system of modifying the "open" action of the .dta extension no longer works in Windows 7 64-bit as it did in previous versions. as well, Microssoft removed the native editing of this. One must use a third party program such as Nirsoft's FileTypesMan.

Anyway, works now though it took some doing. Jeff, I'd be curious to know which registry key you had to edit.


On 2011.02.02 5:16 PM, Jeph Herrin wrote:
My syntax is the same as yours, same platform, and it works fine
(ignore wrapping):

"C:\Program Files (x86)\Stata11\StataMP-64.exe"
                       do d:\files\bin\ "%1"

On 2/2/2011 12:29 PM, John LeBlanc wrote:
For years, I have been able to double-click on a Stata data file, have
it automatically open in Stata, have Stata open in the folder where the
.dta file resides, and run my file that contains all of my
customizations. This worked up until version 9.2 32-bit running in
Windows 7 64-bit professional. I modified the "open" command for the
file type .DTA as follows:

This works with Stata 9.2 on Windows 7
C:\Progra~2\STATS\STATA\wstata.exe do
c:\progra~2\stats\stata\john\ "%1"

This does not work with Stata 11 64-bit on Windows 7
Action for 'Open' under filetype .dta
"C:\Program Files (x86)\Stats\Stata\Stata-64.exe" do
c:\progra~2\stats\stata\john\ "%1"

Is this stored in a different location on the registry? has something
else changed?

Regards, John

John C. LeBlanc, MD, MSc, FRCPC
Associate Professor
Pediatrics, Psychiatry, Community Health and Epidemiology
Dalhousie University

IWK Health Centre Work phone: 902 470-8930
5850 University Avenue Work fax: 888 994-6773
Halifax, Nova Scotia Email: John.LeBlanc@Dal.Ca
B3K 6R8 CANADA Pager: 902 470-8888

* For searches and help try:

No virus found in this message.
Checked by AVG -
Version: 10.0.1204 / Virus Database: 1435/3418 - Release Date: 02/02/11

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index