|
-
Aug 25th, 2004, 06:21 PM
#1
Thread Starter
Frenzied Member
Remove Downloaded Program Files
I have created several versions of an ActiveX control and ended up with lots of unecessary files in the Downloaded Program Files folder.
I can just right click and remove them on my PC but I want to provide something for computer illeterates who might have them as well.
All of my files in the folder start with 'AGM5_'
Is there a way to automatically go through and remove all files in that folder beginning with 'AGM5_'?
Im not sure if I can just delete the files because
a) Right Click, Remove might be unregistering them
b) I think that there are more files in the folder than is visible through Windows
Giving a set of instructions would be a last resort as it is a bit fiddly and doesn't look smooth and professional.
Maybe a batch file or something?
-
Aug 25th, 2004, 07:03 PM
#2
you can use the command KILL AGMS*.* to delete files, or else SHELL "del agms*.*", but shell may need another parm.
deleting them doesn't unregister them, because when they are installed and registered, they are copied into windows\system32, so they will be accessible.
-
Aug 26th, 2004, 01:11 AM
#3
before deleting ocx/dll files you should unregister them like
Shell "regsvr32 /u C:\WINNT\system32\MSINET.OCX"
-
Aug 26th, 2004, 01:22 AM
#4
he doesn't want to delete them, just the copies that started out in the temp directory.
-
Aug 26th, 2004, 01:25 AM
#5
I can just right click and remove them on my PC but I want to provide something for computer illeterates who might have them as well.
what that means
-
Aug 26th, 2004, 02:06 AM
#6
He means he can delete them by himself, but he wants to create a program for people who don't know how to delete them (people who are new to computers).
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Aug 26th, 2004, 03:49 AM
#7
Thread Starter
Frenzied Member
Its always nice to post something before going to bed and have lots of solutions when you wake up
I'll try putting together a combination of unregister and kill commands.
I forgot that some PCs have the Dir WINNT.
Is there a 'proper' way for determining the location of Download Program Files?
(rather than a few If statements)
Is it a system folder? I'll check my API guide when I get to work.
Thanks for all the replies
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|