K
Kevin Brault
Hello everyone,
I have a batch file that executes a C++ executable. Before the executable it
deletes a key from the registry as follows:
echo.Windows Registry Editor Version 5.00>edraw.reg
echo.>>edraw.reg
echo.[-HKEY_CURRENT_USER\\Software\\eDrawings\\PROEOptions]>>edraw.reg
regedit edraw.reg
The C++ executable also deletes the same key by creating and calling a
similar batch file.
The problem I am having is that when the first batch file executes the
regedit command I get an error "Cannot import edraw.reg: Error accessing the
registry.". The C++ app does NOT have this same error. It works fine. I can
also manually merge edraw.reg by double clicking on it without any errors.
What is going on?
Thank you in advance for your help
Kevin J. Brault
I have a batch file that executes a C++ executable. Before the executable it
deletes a key from the registry as follows:
echo.Windows Registry Editor Version 5.00>edraw.reg
echo.>>edraw.reg
echo.[-HKEY_CURRENT_USER\\Software\\eDrawings\\PROEOptions]>>edraw.reg
regedit edraw.reg
The C++ executable also deletes the same key by creating and calling a
similar batch file.
The problem I am having is that when the first batch file executes the
regedit command I get an error "Cannot import edraw.reg: Error accessing the
registry.". The C++ app does NOT have this same error. It works fine. I can
also manually merge edraw.reg by double clicking on it without any errors.
What is going on?
Thank you in advance for your help
Kevin J. Brault