Web Development



Removing ActiveX Controls

By dbizon ·
From within Windows XP, when you view the "Downloaded Program Files" directory, you have the option to update, remove, etc. for each of the ActiveX components that are installed.

Is there a way (or a script) that can do this from the command-line? I tried regsvr32 but that didn't work. It only reported that the control was damaged.

Thanks in advance for any assistance

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

I must be missing something...

by Absolutely In reply to Removing ActiveX Controls

Do you just want to delete some files in a
particular directory? If it's really a
directory, just navigate to that directory,
issue the delete command, and voila! Do
you know the location of the folder holding
the downloaded programs you want to delete?

Collapse -

More info

by dbizon In reply to I must be missing somethi ...

Thanks but I think there is some confusion.

If you navigate (using Windows Explorer) to the "\Windows\Downloaded Program Files" directory (or whatever your Windows directory is, you see a list of ActiveX controls that are installed on your workstation. Right click and you will be presented with options such as Remove, Update, etc. However, I need to proform this process in the background without user intervention (no mouse clicks, etc.) so I need to do this programatically. I think that I found my answer by using the RemoveControlByName API call but now I need to be able to set it up in a program.

Any thoughts anyone?


Collapse -

More old-fashioned solution

by Absolutely In reply to More info

At a Command Prompt or in a batch file:
del c...\activexfolder\file#1

for parameters to accompany the delete command 'del':

for instructions on storing any commands in batch files:

And finally, the entire Microsoft "Command-line reference A-Z" for future use:

In the meantime, store the commands for deleting the unwanted files, one per line, in a file with a sensible name ending in .bat, iee a "batch file". Put a shortcut to that file in the Startup folder or use the Task Scheduler in Control Panel/Administrative Tools to run at a certain time.

Related Discussions

Related Forums