Hi @shwms,
Double-clicking a file (ex. .sas) has the same effect as right-clicking it and selecting the Open command on the context menu. The shell commands for .sas files are located here in the Windows registry:
HKEY_CLASSES_ROOT\SAS.Program.701\shell
The default Open command is located here:
HKEY_CLASSES_ROOT\SAS.Program.701\shell\Open\command
The default value is:
"C:\Program Files\SASHome\SASEnterpriseGuide\7.1\SEGuide.exe" /openfile:"%1"
If you want a file to be opened in the same/existing EG session, the command must include the “openfile” parameter, as it is above. If you want a file to be opened in a new EG session, the command should not include the “openfile” parameter, like so:
"C:\Program Files\SASHome\SASEnterpriseGuide\7.1\SEGuide.exe" "%1"
So, check your Windows registry and make sure that the SEGuide.exe command that is being executed when you double-click the .sas file contains the openfile parameter as in the example above.
Casey
ps- As I alluded to earlier, there can be additional .sas shell commands here in the registry:
HKEY_CLASSES_ROOT\SAS.Program.701\shell
So, if you are using the "Open with..." context menu items, rather than the default Open or double-click, it may be using those associated commands instead. Check those commands in the registry as well and make sure they are passing the openfile parameter.
... View more