Permanently Delete - Add to Context Menu

Page 4 of 10 FirstFirst ... 23456 ... LastLast

  1. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #30

    grindage said:
    is there anyway to have it remove the folder as well.
    i click delete perm on a folder and it just deletes everything in the folder but leaves directory there.
    Same happens to me, it may be a bug. I can delete the folder one of two ways, run Permanently Delete again or by using Refresh. One will always work.
      My Computer


  2. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #31

    Yeah, it seems to be either a bug or by design of SDelete.
      My Computer


  3. etb
    Posts : 1
    Windows 7 Ultimate x64
       #32

    my fix, feel free to use, re-post or re-package


    this doesn't use 3rd party tools, and deletes folders or files.

    What it does:adds silent delete function that bypasses the recycle bin to the right click menu for any file or folder under the name "Erase"

    tested on windows 7 ultimate 64bit

    1) create a folder named c:/erase

    2) create a file in notepad named erase.vbs inside c:/erase folder, input contents below and save:
    Code:
    on error resume next
    sFileSpec = Wscript.Arguments.Item(0)
    DeleteAFolder(sFileSpec)
    DeleteAFile(sFileSpec)
    
    Sub DeleteAFile(filespec)
    Dim fso
    Set fso = CreateObject( "Scripting.FileSystemObject" )
    If (fso.FileExists(fileSpec)) Then fso.DeleteFile(filespec)
    End Sub
    
    Sub DeleteAFolder(filespec)
    Dim fso
    Set fso = CreateObject( "Scripting.FileSystemObject" )
    If (fso.FolderExists(filespec)) Then fso.DeleteFolder(filespec)
    End Sub
    3) create a file in notepad named erase_install.reg, input contents below and save:
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\Shell\Erase\Command]
    @="wscript C:\\erase\\erase.vbs \"%1\" "
    
    [HKEY_CLASSES_ROOT\Directory\shell\Erase\Command]
    @="wscript C:\\erase\\erase.vbs \"%1\" "
    4) double click on the file erase_install.reg that you created, confirm to add to the registry.

    5) right click any file or folder then click Erase.
      My Computer


  4. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #33

    Hello etb, and welcome to Seven Forums.

    Thank you for providing this alternative option. I have modified it just a bit for the name and icon, then added it as OPTION TWO in the tutorial. :)
      My Computer


  5. Posts : 3
    Vista Home Premium 32bit
       #34

    re: OPTION TWO
    Excellent! Keyboard-phobic and so very tired of Shift-Delete-ing, I went looking for a way to do exactly this, delete one file permanently without using a shredder. Though I have Vista, this method works perfectly. Thanks.
      My Computer


  6. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #35

    You're most welcome Emarell, and welcome to Seven Forums. :)
      My Computer


  7. Posts : 55
    Windows 7 Home Premium x64 SP2
       #36

    When the "Permanently delete" item of the context menu of a shortcut is clicked on, it's the target of the shortcut that gets deleted, not the shortcut itself.

    Is that normal?
      My Computer


  8. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #37

    Hello Drkh,

    Yes, that would be normal.
      My Computer


  9. Posts : 52
    Windows 7 Ultimate x64
       #38

    Hello,

    I am using this (without a Secure Erase) with Classic Shell (custom command) and its working well with single file, but no way with multiple files selected. What I am doing wrong?

    Command: wscript.exe "G:\....\Delete.vbs" "%2"
      My Computer


  10. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #39

    Hello Tomas,

    How many items do you have selected when you are trying to permanently delete them?

    If over 15 items, then see the yellow TIP box at the top of the tutorial to see if that may be the issue.

    I also used %1 instead of %2 in the command.
      My Computer


 
Page 4 of 10 FirstFirst ... 23456 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:03.
Find Us