How do I control which version is used to open a .DWS file?

The Dyalog "Knowledgebase". This forum is read-only
Forum rules
The FAQ is a read-only forum which is in general updated only by employees of Dyalog Ltd. It replaces the FAQ page which existed under http://www.dyalog.com. Rather than rejecting other posts to this forum, such posts will be put in a moderation queue, and moved to a more appropriate forum.

How do I control which version is used to open a .DWS file?

Postby Morten|Dyalog on Tue Sep 30, 2008 7:16 pm

[Edited to put our current advice at the top on 26 October 2017]

Right click on the shortcut which starts Dyalog and choose "Run as administrator".

Run this user command by typing it into the session and hitting enter:

]fileassociations

Please follow the instructions to associate .dws, .dyalog, and .dyapp files with your version.

If you still have problems, please run the following function and contact Dyalog Support.

      checkregistry;reg1;reg2
⎕USING←'' 'System'
checkreg←{⍵=⎕NULL:'No Value'
⎕←⍵.GetValue,⊂''
⍵.Close
}


reg1←Microsoft.Win32.Registry.ClassesRoot.OpenSubKey⊂'dwsfile\shell\open\command'
⎕←'root dwsfile\shell\open\command'
checkreg reg1

reg1←Microsoft.Win32.Registry.ClassesRoot.OpenSubKey⊂'Applications\dyalog.exe\shell\open\command'
⎕←'root Applications\dyalog.exe\shell\open\command'
checkreg reg1


reg1←Microsoft.Win32.Registry.CurrentUser.OpenSubKey⊂'software\Classes\dwsfile\shell\open\command'
⎕←'HKCU software\Classes\dwsfile\shell\open\command'
checkreg reg1


Vince




If you wish to change the program (for example, an older or newer version of Dyalog) used to open .DWS files from the Windows Explorer then you will need to modify the registry.


1) Start regedit
2) Navigate to HKEY_CLASSES_ROOT\dwsfile\shell
3) Edit the values of the "Open\command" and "Open (do not start)\command" keys.

See the following page which illustrates the registry location.

reg_startup.jpg
Startup Registry
reg_startup.jpg (47.07 KiB) Viewed 11383 times


Two other extensions associated with Dyalog are ".dyalog" and ".dyappp".

For the ".dyalog" extension edit the section HKEY_CLASSES_ROOT\dyalogfile\shell, and for the ".dyapp" extension, HKEY_CLASSES_ROOT\dyappfile\shell
User avatar
Morten|Dyalog
 
Posts: 460
Joined: Tue Sep 09, 2008 3:52 pm

Re: How do I control which version is used to open a .DWS file?

Postby Nicolas|Dyalog on Fri Oct 03, 2008 11:59 am

You can also add shell menus by creating new keys :

1) Start regedit
2) Navigate to HKEY_CLASSES_ROOT\dwsfile\shell
3) Create a key with the name you want to appear, for example :
Code: Select all
Open with v9

4) Create a key called
Code: Select all
command
and set its default value to the command line to execute, for example :
Code: Select all
"C:\Dyalog90\dyalog.exe" "%1"


It should look like :
dwsfile_open_command_registry.jpg
dwsfile_open_command_registry.jpg (27.18 KiB) Viewed 11361 times


Then when you right click on a .dws file, you should see a new menu :
dwsfile_open_command_shell.jpg
dwsfile_open_command_shell.jpg (44 KiB) Viewed 11361 times
Nicolas|Dyalog
 
Posts: 17
Joined: Wed Sep 10, 2008 9:39 am


Return to Frequently Asked Questions (FAQ)

Who is online

Users browsing this forum: No registered users and 1 guest