Recycle Files From Windows Command Prompt

by Keith Dsouza | Translate | Print
Monday, 30th Jun 2008 | Share


Share Recycle Files From Windows Command Prompt on Twitter Share Recycle Files From Windows Command Prompt on Facebook Save Recycle Files From Windows Command Prompt To Delicious Favorites Stumble Recycle Files From Windows Command Prompt Share Recycle Files From Windows Command Prompt on Digg Get Instant Updates as RSS Feeds from Techie Buzz

Windows command prompt provides users with several commands to copy, move and delete files and the commands are quite faster than the regular GUI. Well that said deleting files from the command prompt can be quite dangerous since it skips the recycle bin altogether and works like the Shift + Delete option while using the GUI.

There is a handy utility though which will allow you to recycle your files from the command prompt rather than completely deleting it. CmdUtils provides you with a recycle command which pretty much works like the regular delete option for windows moving the deleted files to the recycle bin instead of completely deleting it. You can delete multiple files or use wildcards to recycle your files from the command prompts.

recycle-from-command-prompt

To use the recycle command download the CmdUtils zip file and unzip the exe to your Windows folder. Adding them to the Windows folder would allow you to access the command globally without you having to specify the entire path to the executable. You can then start using the recycle command by typing in;

recycle filename.txt

You can also specify wildcards with the commands so typing in recycle *.txt will recycle any text files in the current directory. There is also a option to suppress the delete confirmation dialog by using the force flag with the command.

To delete a file without having to confirm is use the command

recycle –f filename.txt

The –f flag will tell the command to force a recycle without showing you the confirmation dialog.

Learn more about CmdUtils [Via Watching The Net]



Share

4 Responses so far | Share Your Opinions!

  1. Women's Clothes
    July 1st, 2008 at 4:05 am #

    Didn’t know that one, you give some great tips!

    Reply to this comment

  2. Silki
    July 1st, 2008 at 4:41 am #

    Useful for the people using CMD often.

    Reply to this comment

  3. abhishek
    July 1st, 2008 at 5:51 am #

    Looks great….can it also delete all the files in specific time interval and move the files to recycle bin

    Reply to this comment

  4. Madhur Kapoor
    July 1st, 2008 at 2:19 pm #

    Nice tip, never knew about this one.

    Reply to this comment

Leave a Comment

Note: We discourage users from using keywords in their names while posting comments, most of them get caught by spam, also it really would be more fruitful in knowing people who comment by their real name, rather than by using a name no one relates to. In future we reserve the right to delete comments from users using a name other than their own.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>