Archived from groups: microsoft.public.windowsxp.general (More info?)
Hi,
does anyony know if regedit.exe, called to process data from an input
reg file, returns with a sensible exit code?
I'd like to know if reg file data was processed successful or not.
Example:
regedit.exe /s mydata.reg
if errorlevel 1 echo "error while processing reg file..."
....
Archived from groups: microsoft.public.windowsxp.general (More info?)
Then remove the /s switch.
All the /s switch does is suppress these popups...
Registry Editor
[[Are you sure you want to add the information in path of .reg file to the
registry?
If the user clicks Yes, the user receives the following message:
Registry Editor
Information in path of .reg file has been successfully entered into the
registry.]]
How To Add, Modify, or Delete Registry Subkeys and Values by Using a
Registration Entries (.reg) File
http://support.microsoft.com/defau [...] -us;310516
Sounds like you want to see them.
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In news:1122630774.533762.44750@g49g2000cwa.googlegroups.com,
andy <andy_gk@t-online.de> hunted and pecked:
> Hi,
>
> does anyony know if regedit.exe, called to process data from an input
> reg file, returns with a sensible exit code?
> I'd like to know if reg file data was processed successful or not.
>
> Example:
> regedit.exe /s mydata.reg
>
> if errorlevel 1 echo "error while processing reg file..."
> ...
>
> Thanks in advance.
> Regards,
> Andy
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.