1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

can't delete zipfile with .exe extention

Discussion in 'Windows XP' started by Monkey, 2005/02/18.

Thread Status:
Not open for further replies.
  1. 2005/02/18
    Monkey

    Monkey Inactive Thread Starter

    Joined:
    2005/02/18
    Messages:
    2
    Likes Received:
    0
    Ok so i download a Zip file, and when it finnished, it didn't have the extention so i didn't know if it was a self extracting zip so i made it to .exe and i ran it then it closed itslef so then i right clicked it and pick open with winzip so i got my files and stuff but when i try to delete it it keeps saying i can't, that its in use and i made sure nothing vissible in the proccess list is useing it but it keeps telling me the same thing i restarted my computer and everything but it still won't let me delete that file any ideas please any will do
     
  2. 2005/02/18
    Mron

    Mron Inactive

    Joined:
    2005/02/15
    Messages:
    47
    Likes Received:
    0
    Give this a try...

    Open notepad, and copy/paste the text below. Save the file as whatever.reg
    Double clicking the whatever.reg file will add it to the registry, and give you the option to: "Delete on Reboot" when you right click a file or folder.

    Note: ALWAYS backup your registry BEFORE making any changes to it.

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\Delete on reboot\command]
    @= "CMD /E:OFF /C REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Currentversion\\RunOnce /v \ "Del %1 OnNextReboot\" /d ^\ "cmd.exe /c DEL /F /Q \\\ "%1\\\ "\" /f\" "
    
    [HKEY_CLASSES_ROOT\*\shell\Open]
    
    [HKEY_CLASSES_ROOT\Folder\shell\Delete on reboot\command]
    @= "CMD /E:OFF /C REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Currentversion\\RunOnce /v \ "Del %1 OnNextReboot\" /d ^\ "cmd.exe /c RD /S /Q \\\ "%1\\\ "\" /f\" "
    It doesn't work in ALL situations since it deletes the file AFTER the user logon, but it may work in your situation and it may be of use later on too.
     
    Mron,
    #2

  3. to hide this advert.

  4. 2005/02/18
    Mron

    Mron Inactive

    Joined:
    2005/02/15
    Messages:
    47
    Likes Received:
    0
    If you are hesitant to make changes to the registry, you could try opening a command window, then open taskmanager and 'end process' on explorer.exe

    Then delete the file from the command prompt, and restart explorer.exe
     
    Mron,
    #3
  5. 2005/02/18
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
  6. 2005/02/19
    Monkey

    Monkey Inactive Thread Starter

    Joined:
    2005/02/18
    Messages:
    2
    Likes Received:
    0
    Thank you it work i download the program becuase i didn't know how to back up my registry but it does the same thing the notepad would have done i right click the file and it lets me choose delete on reboot
     
  7. 2005/02/19
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
    Glad to hear it worked for you :) - thanks for posting back.
     
  8. 2005/02/19
    Barbara-Ann

    Barbara-Ann Inactive

    Joined:
    2002/01/07
    Messages:
    124
    Likes Received:
    3
    didn't read far enough!
     
    Last edited: 2005/02/19
  9. 2005/02/19
    Mron

    Mron Inactive

    Joined:
    2005/02/15
    Messages:
    47
    Likes Received:
    0
    Glad to hear you got that file deleted.
    If you happen to come back to this thread, there is an easy way to backup your registry.
    Start>Run>regedit
    Goto file>Export
    Save the file somewhere, and you're done.

    To restore that file, Open regedit again, and goto File>Import, and point to the backup file made earlier.


    @PeteC
    Thanks for the app, added it to my collection and currently using it.

    One question for you if I may..
    Do you know if the file deleted on reboot is deleted before, or after a user logs on?
    The reg entry I posted above deletes the file after a user logs on and I would prefer something to delete files before a logon if I could at times.

    Thanks for reading, and helping out.
     
    Mron,
    #8
  10. 2005/02/19
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    It deletes it before logon. You can also delete complete folders with it but it requires you to drag/drop them into the main program field to get them recognized. The right-click context menu won't let you do that.

    It's a handy tool for sure.
     
    Last edited: 2005/02/19
  11. 2005/02/19
    Mron

    Mron Inactive

    Joined:
    2005/02/15
    Messages:
    47
    Likes Received:
    0
    Great, thanks for the quick reply surferdude2.

    It's a keeper for sure.

    Also, thanks for posting about the drag and drop for folders.
    I was wondering about that.
     
  12. 2005/02/19
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    I hasten to mention that the folder must be empty.
     
  13. 2005/02/19
    Mron

    Mron Inactive

    Joined:
    2005/02/15
    Messages:
    47
    Likes Received:
    0
    Ah, good to know, thanks.
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.