Results 1 to 7 of 7

Thread: Remove Downloaded Program Files

  1. #1

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    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?

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    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.


  3. #3
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424
    before deleting ocx/dll files you should unregister them like

    Shell "regsvr32 /u C:\WINNT\system32\MSINET.OCX"

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    he doesn't want to delete them, just the copies that started out in the temp directory.

  5. #5
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424
    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

  6. #6
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    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

  7. #7

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383
    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
  •  



Click Here to Expand Forum to Full Width