Regsvr32 cmd in run--->open dialogue box

C

Chad Harris

I'm on a XP Pro SP2 box.When I use a Regsvr32 ( the command-line tool that
registers dynamic-link libraries (dlls) and ActiveX controls in the
registry) instead of registering I get the open with dialogue box, i.e.
"Choose program you want to open this file". I ran SFC to service pack
level meaning I point SFC to the HD to take advantage of also having access
to XP SP2 install files ala Mark Liron
http://www.updatexp.com/scannow-sfc.html but it did not correct this. Has
anyone encountered this and does anyone have any ideas on fixing this?

Tia,

Chad Harris
 
C

Chad Harris

Ramesh--

Appreciate the help. That cmd doesn't seem to work at the cmd prompt but
would in the run box, but on my box it still gives me the same dialogue box
from the run box. I ran SFC no joy. I thought about reinstalling SP2 over
itself. I've fixed SFC that way before.

I wondered if there is any reg key or value that controls this, and also
what should you get from that cmd and isn't it true that a %windir% won't
work at the cmd line?

Best regards,

Chad
_____________________________________________________________
 
C

Chad Harris

Ramesh --
You are right. I had been told wrongly that a %windir% wouldn't work at the
cmd prompt. It did.

My problem is that I can make a resvr cmd (I don't know about all) work at
the cmd prompt and I cannot make any resvr32 reregister of a .dll or other
cmd work at the run box.

1) Do you know a way to fix this--and was your "%windir%" thing to help fix
this?
2) What is the purpose of the %windir% cmd--I appreciate it but I'm trying
to learn so I can context it in the future.
It was %windir%\system32\regsvr32.exe %windir%\system32\shell32.dll to run
at the cmd prompt.

Many thanks,

Chad
 
R

Ramesh, MS-MVP

Chad,

%Windir% is nothing but your path to Windows folder. That was not a fix, but
a test to determine if the registration is successful if the full path (to
regsvr32.exe) is mentioned.

From your post I undersand that "regsvr32 somefile.dll" does not work. But,
does this work from Start, Run dialog?

%windir%\system32\regsvr32.exe %windir%\system32\shell32.dll

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com


Ramesh --
You are right. I had been told wrongly that a %windir% wouldn't work at the
cmd prompt. It did.

My problem is that I can make a resvr cmd (I don't know about all) work at
the cmd prompt and I cannot make any resvr32 reregister of a .dll or other
cmd work at the run box.

1) Do you know a way to fix this--and was your "%windir%" thing to help fix
this?
2) What is the purpose of the %windir% cmd--I appreciate it but I'm trying
to learn so I can context it in the future.
It was %windir%\system32\regsvr32.exe %windir%\system32\shell32.dll to run
at the cmd prompt.

Many thanks,

Chad
 
C

Chad Harris

Ramesh--

1) Your cmd %windir%\system32\regsvr32.exe %windir%\system32\shell32.dll
does work. But if I try to regegister per a KB like
this one: http://support.microsoft.com/default.aspx?scid=kb;en-us;902932 I
get the "what file do you want to open with dialogue box."
However, thes cmds to regegister or any to unregister will work from the cmd
prompt. So now I guess it becomes a bit academic since I
can do it, (I reinstalled SP2 over SP2) and originally I had a problem that
I used an old clean tool to uninstall One Care (provided by One Care
team)and I clicked it by mistake (brilliant I know because I thought I was
using something in a list to uninstall Winrar) and because it was an
old batch file it partially uninstaled One Care and I had to do a lot of
work to get it cleaned out and back in. I have One Care working perfectly
now. I had to try to reregister in steps I had to take to get One Care
completely cleaned out and back in.

So the bottom line is that I should be able to reregister .dlls in the run
box. I cannot. I can at the cmd prompt. I can run the cmd you gave me
fine from the run box. I hope that helps you help me fix regsvr32 cmds
*from the run box.* Appreciate the help as much as we appreciate your
great site.

Thanks,

Chad
_______________________________________
 
R

Ramesh, MS-MVP

Chad,

Type this command in Start, Run:

cmd /k cd /d %systemdrive%\

Then, use this DIR command in the Command Prompt:

dir regsvr32* /s /a >list.txt

Exit Command Prompt, and then open "%systemdrive%\list.txt" from Start/Run.

* Post the contents here *

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com


Ramesh--

1) Your cmd %windir%\system32\regsvr32.exe %windir%\system32\shell32.dll
does work. But if I try to regegister per a KB like
this one: http://support.microsoft.com/default.aspx?scid=kb;en-us;902932 I
get the "what file do you want to open with dialogue box."
However, thes cmds to regegister or any to unregister will work from the cmd
prompt. So now I guess it becomes a bit academic since I
can do it, (I reinstalled SP2 over SP2) and originally I had a problem that
I used an old clean tool to uninstall One Care (provided by One Care
team)and I clicked it by mistake (brilliant I know because I thought I was
using something in a list to uninstall Winrar) and because it was an
old batch file it partially uninstaled One Care and I had to do a lot of
work to get it cleaned out and back in. I have One Care working perfectly
now. I had to try to reregister in steps I had to take to get One Care
completely cleaned out and back in.

So the bottom line is that I should be able to reregister .dlls in the run
box. I cannot. I can at the cmd prompt. I can run the cmd you gave me
fine from the run box. I hope that helps you help me fix regsvr32 cmds
*from the run box.* Appreciate the help as much as we appreciate your
great site.

Thanks,

Chad
_______________________________________
 
C

Chad Harris

Ramesh--thanks much for sticking with me. I'm glad to try anything you
suggest.

I did what you asked (I wasn't sure about whether to include the quotes in
the last run command but
it seemed like from your others that you would not have put them there if
you had not wanted them used.
I figured if they did not work, I would try it without them but a notepad
sprang up and here's what it says:

It's titled list. The contents are pasted here:

Volume in drive C has no label.
Volume Serial Number is A849-42BD

Directory of C:\Documents and Settings\CHAD HARRIS

10/05/2005 02:44 PM 0 regsvr32
1 File(s) 0 bytes

Directory of C:\Documents and Settings\CHAD HARRIS\Desktop

12/15/2005 09:26 AM 1,281 Regsvr32 cmd in run---_open dialogue
box.nws
1 File(s) 1,281 bytes

______________________________________________________________________________
 
R

Ramesh, MS-MVP

Hi Chad,

Saw this guy (a 0 byte file with no extension) ?

- - - - -
Directory of C:\Documents and Settings\CHAD HARRIS

10/05/2005 02:44 PM 0 regsvr32
1 File(s) 0 bytes
- - - - -

Go to the above location using Windows Explorer, and delete the "regsvr32"
file. Your problem should be fixed.

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com


Ramesh--thanks much for sticking with me. I'm glad to try anything you
suggest.

I did what you asked (I wasn't sure about whether to include the quotes in
the last run command but
it seemed like from your others that you would not have put them there if
you had not wanted them used.
I figured if they did not work, I would try it without them but a notepad
sprang up and here's what it says:

It's titled list. The contents are pasted here:

Volume in drive C has no label.
Volume Serial Number is A849-42BD

Directory of C:\Documents and Settings\CHAD HARRIS

10/05/2005 02:44 PM 0 regsvr32
1 File(s) 0 bytes

Directory of C:\Documents and Settings\CHAD HARRIS\Desktop

12/15/2005 09:26 AM 1,281 Regsvr32 cmd in run---_open dialogue
box.nws
1 File(s) 1,281 bytes

______________________________________________________________________________
 
C

Chad Harris

Ramesh--

I'm curious what this List/Report is and could the entry 1,281 Regsrv32 cmd
in run mean that analagous to Event Viewer that there are so many cmds I've
done from run to reregister and unregister .dlls that it's saturated or full
and they need to be cleaned/purged "to make room." In other words, what
does these commands and the resulting list tell us and what can we do with
this information to fix.
_________________________________________________________________________
It's titled list. The contents are pasted here:

Volume in drive C has no label.
Volume Serial Number is A849-42BD

Directory of C:\Documents and Settings\CHAD HARRIS

10/05/2005 02:44 PM 0 regsvr32
1 File(s) 0 bytes

Directory of C:\Documents and Settings\CHAD HARRIS\Desktop

12/15/2005 09:26 AM 1,281 Regsvr32 cmd in run---_open dialogue
box.nws
1 File(s) 1,281 bytes
____________________________________________________________________________


Thanks,

Chad
 
D

David Candy

Good. I only watched a bit of it yesterday trying to distract. I'm going to the morgue in a few hours to identify dad's body.

Brett Lee RuLz
 
C

Chad Harris

David How does your list reiterating my post with a google link help explain
what the list Ramesh's cmd producted means???

David my question went to solving the original prob that Regsrv32 commands
don't work in the run box but do at cmd prompt. If I had a solution I would
not have posted. Ramesh gave me a cmd to get a list. I got the list. If I
could use the information in the list to fix the original problem I would
have and I think you know I would have.

This by you makes no sense and lends nothing toward using the list Ramesh's
cmd generated: I know what I posted without the google group link. It's
above these posts.

David in the hood it would be "Say Wha?" This means what? LOL
_________________________________________________________________________________________________
Post by David Candy in response to what the list gen by Ramesh's command is
to do to resolve regsrv32 prob:

"David Candy" <.> wrote in message
The second one is a newsgroup post you've saved.

Here
http://groups.google.com.au/groups?...1&as_maxd=19&as_maxm=12&as_maxy=2005&safe=off

It's by you.



"David Candy" <.> wrote in message
The second one is a newsgroup post you've saved.

Here
http://groups.google.com.au/groups?...1&as_maxd=19&as_maxm=12&as_maxy=2005&safe=off

It's by you.
 
C

Chad Harris

Ramesh many thanks but want to understand why fix worked. In other words
what was broken and how did the fix fix it?


This worked great Ramesh Thanks a bunch. I have two questions though so
I can understand this (Sorry I missed this answer and guess that was what
David Candy was referring to by his post of a google link--I'm not sure):

1) What was the information you got on the first commands--what do you call
it--I know the list prompted you to tell me to delete the Regsvr 32 file at
that location which I did.
2) What did deleting the regsvr 32 file at - Directory of C:\Documents and
Settings\CHAD HARRIS do to fix it. Was it corrupt? Because it worked at
cmd but not at run. Now thanks to you it works again at run.

I really appreciate the fix. Just trying to understand the reasoning behind
why it worked.

Many thanks Ramesh.

Chad
 
D

Dave Patrick

Ramesh, very nice.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Hi Chad,
|
| Saw this guy (a 0 byte file with no extension) ?
|
| - - - - -
| Directory of C:\Documents and Settings\CHAD HARRIS
|
| 10/05/2005 02:44 PM 0 regsvr32
| 1 File(s) 0 bytes
| - - - - -
|
| Go to the above location using Windows Explorer, and delete the "regsvr32"
| file. Your problem should be fixed.
|
| --
| Ramesh, Microsoft MVP
| Windows XP Shell/User
|
| Windows XP Troubleshooting
| http://www.winhelponline.com
 
D

David Candy

I'm curious what this List/Report is and could the entry 1,281 Regsrv32 cmd

It is the newsgroup post you saved in My Docs. It showed up because you have regsvr in the filename.
 
D

David Candy

You typed regsvr32 and cmd found a file by that name. You were hoping for it to find regsvr32.exe.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top