Question

Locked

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.

4 total posts (Page 1 of 1)  
| 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?


Thanks

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
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.

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Software Forums