I am attempting to automatically open .xml files with a .bat script when I open them.
Microsoft XP 2002 SP 2
Ultimate goals:
1. Figure out how Open With list is stored.
2. Edit Open With list to clear old entries, and add new entries.
Current:
When I double click on xml files, they are automatically run with
C:\project1\Preprocess.bat
Wanted:
When I double click on xml files, they are automatically run with
C:\project2\Preprocess.bat
Attempts to change:
1. a. Right clicked on xml file and selected Open With... Choose Program
b. Browsed to C:\project2\Preprocess.bat
c. selected Preprocess.bat
d. selected "always open with this file."
Result: when the file executes, or when I later double click on the file, it runs with C:\project1\Preprocess.bat. The file listing in the screen of programs to select from has not updated.
2. a. Renamed C:\project1\Preprocess.bat to C:\project1\Preprocess2.bat
b. Right clicked on xml file and selected Open With... Choose Program
c. Preprocess.bat can not be found.
d. Browsed to C:\project2\Preprocess.bat
e. Preprocess.bat still can not be found.
The only thing that works is renaming my current C:\project2\Preprocess.bat.
However, I don't want to have to version up my .bat files for every version of every project. Why does windows not update these entries??