I appreciate your response, but this did not work in Win NT or Windows 2000. I did not try the Windows 98 solution. Also, I did a search for "flush" and also "environment" as you suggested. 13 entries appeared and now of them had information on how to flush the registry or any useful environment information. Basically, I rebooted after I made changes to the registry to get around the "Flush".
How do you "Flush" the registry?
Here is what occured when I try your suggested registry changes:
The sample/example I want to try is the following:
"C:\Program files\ROC\Jre13\javaw.exe"
Here what I got: (Again in both NT & 2000)
1. I set up %ROCJAVA% variable in the location HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment which holds the following:
"C:\Program files\ROC\Jre13"
2. I get out of the registry and reboot
3. I go into the file extension open command and put in the following: %ROCJAVA%\java.exe
A message box appears that says it cannot find the file.
Note: I tried many combinations of this, putting in a quote quote mark in the variable because of the long file name. I tried putting in the entire path with the java.exe java.exe in the variable. None of these worked.
Just for grins, I put in %ROCJAVA%
otepad.exe even though the notepad.exe is not in this subdirectory. It likes this now and lets me out of the screen. Now I go back into the open command and it has
In NT:
C:\Program files\ROC\Jre13
otepad.exe
In 2000:
%ROCJAVA%
otepad.exe
So it seems it is doing some type of variable substitution, but only after it is able to leave the open command
Summary: I hope the above sheds some light. As always I appreciate the input of anyone trying to help.
Scott Matthews