Question Locked

Removing ActiveX Controls

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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

4 replies

by absolutely

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?

by daniel.bizon

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?

Thanks

by absolutely

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

for parameters to accompany the delete command 'del':
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

for instructions on storing any commands in batch files:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

And finally, the entire Microsoft "Command-line reference A-Z" for future use:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

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.

This discussion is closed to new replies.