+ Reply to Thread
Results 1 to 6 of 6

Thread: Recycle Bin ~ VBScript

  1. #1
    lair360 is offline x10 Sophmore lair360 is an unknown quantity at this point
    Join Date
    Dec 2008
    Posts
    200

    Post Recycle Bin ~ VBScript

    Version: 13.4
    Revision: 34 Build 65

    Recycle Bin ~ VBScript

    Introduction:
    this little Script will deletes files and folders permanently as they just bypass Recycle Bin completely...

    The recycle bin saves all the files or folders, which have been removed by the user after using them. So, it gets piled up and degrade your computer performances! These files and folders can also be restored back, if required at later stage. Sooner or later, it must also be cleared otherwise space problem will added. This setting just bypasses recycle bin. Therefore, it remains clear (always), even if required very urgently later, can not be restored back!

    1.] Download notepad++ from the original author or from a mirror and install the software.
    -------------------------------
    http://sourceforge.net/projects/notepad-plus/
    http://filehippo.com/download_notepad/
    -------------------------------

    Disable ~ NoRecycleFiles
    ---Copy Source Code---


    Code:
    'Author: Lair360
    'Version: 16.2
    'Revision: 35 Build 16
    '-------------------------------------------
    On Error Resume Next
    Dim nret1,nret2
    '-------------------------------------------
    Wscript.Echo "This script will 'DISABLE' NoRecycleFiles..."
    '--------------------------------------------
    'Don't modify any of these strings!
    'Any modification to this line is very risky...
    '--------------------------------------------
    Set globaldrive=WScript.CreateObject("WScript.Shell")
    nret1=globaldrive.Run("cmd /C reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\ /v NoRecycleFiles /t REG_DWORD /d 1 /f",0,TRUE)
    nret2=globaldrive.Run("cmd /C reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\ /v NoRecycleFiles /t REG_DWORD /d 1 /f",0,TRUE)
    '-------------------------------------------
    WScript.Echo "Please reboot your computer or log off..."
    'VBScript Ends
    ---End Source Code---

    Enable ~ NoRecycleFiles
    ---Copy Source Code---

    Code:
    'Author: Lair360
    'Version: 16.2
    'Revision: 35 Build 16
    '-------------------------------------------
    On Error Resume Next
    Dim nret1,nret2
    '-------------------------------------------
    Wscript.Echo "This script will 'DISABLE' NoRecycleFiles..."
    '--------------------------------------------
    'Don't modify any of these strings!
    'Any modification to this line is very risky...
    '--------------------------------------------
    Set globaldrive=WScript.CreateObject("WScript.Shell")
    nret1=globaldrive.Run("cmd /C reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\ /v NoRecycleFiles /t REG_DWORD /d 1 /f",0,TRUE)
    nret2=globaldrive.Run("cmd /C reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\ /v NoRecycleFiles /t REG_DWORD /d 1 /f",0,TRUE)
    '-------------------------------------------
    WScript.Echo "Please reboot your computer or log off..."
    'VBScript Ends
    ---End Source Code---
    Copyright 2001-2008 Lair360
    http://lair360.co.uk

  2. #2
    808solutions is offline x10Hosting Member 808solutions is an unknown quantity at this point
    Join Date
    Feb 2009
    Posts
    7

    Re: Recycle Bin ~ VBScript

    now how do i recover them? hahaha just playing thanks man i'll give it a try ;)

  3. #3
    lair360 is offline x10 Sophmore lair360 is an unknown quantity at this point
    Join Date
    Dec 2008
    Posts
    200

    Re: Recycle Bin ~ VBScript

    Quote Originally Posted by 808solutions View Post
    now how do i recover them? hahaha just playing thanks man i'll give it a try ;)
    UUUhhh....buddy, there is a newer version. Please visit my blog. Well...my blog is under my Signature panel.

    Cheers!

  4. #4
    bettadra is offline x10Hosting Member bettadra is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    1

    Re: Recycle Bin ~ VBScript

    Why not just right-click on Recycle Bin, then Properties and click on "Do not move files to the Recycle Bin. Remove files immediately when deleted." So much easier...

  5. #5
    lair360 is offline x10 Sophmore lair360 is an unknown quantity at this point
    Join Date
    Dec 2008
    Posts
    200

    Re: Recycle Bin ~ VBScript

    Quote Originally Posted by bettadra View Post
    Why not just right-click on Recycle Bin, then Properties and click on "Do not move files to the Recycle Bin. Remove files immediately when deleted." So much easier...
    Well...first impression....look at the codes!
    This script will completely erase everything when it goes into your recycle bin!
    So...in my point, you don't need to worry about clicking on your bin!!

    Pretty simple script that can do a big job in a small box...:laugh:

  6. #6
    remie is offline x10Hosting Member remie is an unknown quantity at this point
    Join Date
    Sep 2006
    Posts
    14

    Re: Recycle Bin ~ VBScript

    Whats wrong with SHIFT + Delete button?

+ Reply to Thread

Similar Threads

  1. I lost my Recycle Bin
    By Wizet in forum Off Topic
    Replies: 6
    Last Post: 12-17-2008, 01:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers