• How To?
  • Tips ‘n Tricks
  • WordPress
  • Snippets
  • Software
    • Browsers
    • Downloads
  • Web
  • Tools
    • Character Counter
    • chmod Calculator
    • Entities Encoder
    • Live HTML Editor
    • My IP
  • Contact
Twitter Facebook Google+ RSS
You are here: SumTips » Software » Delete Files To Recycle Bin From Command Prompt on Windows

Delete Files To Recycle Bin From Command Prompt on Windows

Posted on June 29, 2012 by Renji | Short URL: http://sumtips.com/?p=7066

Deleting files from the Windows Command Prompt can be quite dangerous if you aren’t careful. When a file is deleted from the command line, it skips the Recycle Bin altogether and works like the Shift + Delete option while using the Explorer. Sure, you can recover deleted files if you’re quick enough. But if you want a more convenient option, have a look at Recycle.

Recycle is a small (164 KB) handy utility that will give you the functionality of the regular delete option in Windows. Instead of permanently deleting files, it moves them to the Recycle Bin.

Using Recyle

To use this tool, download and extract the zip file, and copy the executable file to C:\Windows\System32 folder. Administrative privilege is required for this action.

You can place “Recycle.exe” in any folder that you want, although adding it under the system’s Environment variable path would give you access to the command globally without having to specify the entire path each time you want to use it. If you want free software to create path, have a look at these free tools.

Once in place, use the “recycle” command to delete any file straight to the Recycle Bin, instead of the native “del” command. For example:

Recycle File.txt

Recycle

To make usage even easier, you can delete multiple files and use wildcards.

Wildcard usage:

Recycle C:\SumTips\*

Delete multiple files:

Recycle File1.txt File2.txt

You can also restore deleted files from the Recycle Bin using the command prompt. To undelete files, you need to use /U switch:

Recycle /U C:\SumTips\File.txt

The program supports many other switches. To view them all enter this command:

Recycle /?

If you’re a regular command line user, this is something that should be in your arsenal.

I tested Recycle on Windows 7 64-bit, however it should work in all Windows versions.

Download: Recycle


Tweet

Related posts:

  • Delete Files Based on Extension, Attribute in Folders & Subfolders
  • 5 Software to Undelete Files
  • Save or Print Output from Windows Command Prompt to a Text File
  • Delete Individual or All Facebook Messages in a Single Click
  • Increase Command Prompt and PowerShell Width & Line History
Categories: Software | Tags: Command Prompt, Software, Windows
Disable Unwanted Keyboard Keys on Windows, Or Remap
Directly Access and Use Google Web Fonts in Photoshop

  • Get Updates via Email

  • Recent Posts

    • CMS2CMS: Migrate Site from Drupal or Joomla to WordPress
    • WordPress: Add Preview Button in Distraction Free Writing
    • How to Activate or Deactivate Individual Jetpack Modules
    • Windows 8: Auto Update Defender with Windows Update Disabled
    • Automatically Start and Close Programs at Specific Time
    • How to Copy Code from Notepad++ with Syntax Highlighting
  • Random Posts

    • Delete Individual or All Facebook Messages in a Single Click
    • iOS 4 Direct Download Links
    • Disable Windows 8 Taskbar Transparency with Opaque Taskbar
    • Facebook Adds "Memorable Stories" Feature
    • Refer a Candidate and Google India Might Pay You 100,000 INR
    • Google Plus Cover Creator, Cover Template Guides & Dimensions
  • Categories

    • Blogging
    • Games
    • Google
    • How To?
    • Linux
    • Microsoft
      • Windows
    • Miscellaneous
    • Phone
    • Snippets
      • AutoHotkey Snippets
      • CSS Snippets
      • htaccess Snippets
      • JavaScript Snippets
      • PowerShell Snippets
      • WordPress Snippets
    • Social
    • Software
      • Browsers
    • Tips 'n Tricks
    • Wallpapers
    • Web
© SumTips. Contact | Sitemap | Privacy Policy