Computing.Net > Forums > Programming > regsvr32 in batch - exit status ?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

regsvr32 in batch - exit status ?

Reply to Message Icon

Name: Yoav Pinsky (by yoavip)
Date: December 4, 2005 at 05:06:48 Pacific
OS: Win Xp
CPU/Ram: P4 - 512 Mb
Comment:

I need to run regsvr32 on many DLL's, and check that there were no errors.

I have a batch script that iterate over a list of DLL's and run regsvr32 on each one.
I'm using the /s flag to disable the msg box.
My question is how can I know if there was an error when running regsvr32 this way?
is there any exit status I can check ? errorlevel ? any other idea ?
Please help !

Thanks,
Yoav



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: December 5, 2005 at 02:51:25 Pacific
Reply:

I dunno regsvr but most external commands will set errorlevel according to result.

If regsvr32 does this, try:

::==============
@echo off

for /f %%D in (DLLlist) do call :RS %%D
goto :eof

:RS
regsvt32 %1
if errorlevel 1 echo %1 >> errorLOG
goto :eof
::=================


If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: Yoav Pinsky (by yoavip)
Date: December 12, 2005 at 07:11:26 Pacific
Reply:

it seems that regsvr32 does not set errorlevel...

s--- !


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Console closes down in Ec... AS Computing question..(e...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: regsvr32 in batch - exit status ?

Date Routines in Batch Files www.computing.net/answers/programming/date-routines-in-batch-files/15590.html

VB yes no Question in batch www.computing.net/answers/programming/vb-yes-no-question-in-batch/18889.html

How do U double-direct in Batch?? www.computing.net/answers/programming/how-do-u-doubledirect-in-batch/11387.html