ElSoloMar Posted August 17, 2005 Posted August 17, 2005 Guys, Do any of you know how to delete a file from the DOS command-line to the recycle bin? This is, not using any AutoIt functions, just plain old DOS! I am running a box with borg technology! The distintiveness of your brand box will be added to the colective ... protection utilities are futile!cha, cha, chachaaaanm!
LxP Posted August 17, 2005 Posted August 17, 2005 DOS does not have the notion of a recycle bin.On Win9x systems you could possibly assume that the location is something like C:\RECYCLED but if you DIR this location, you will find that filenames are specially renamed. It is likely that Windows also takes notes in other locations when a file is moved there via Windows.You may find that you can do the above, but you may not achieve the desired result of the file appearing in the Recycle Bin window for example.
seandisanti Posted August 17, 2005 Posted August 17, 2005 DOS does not have the notion of a recycle bin.On Win9x systems you could possibly assume that the location is something like C:\RECYCLED but if you DIR this location, you will find that filenames are specially renamed. It is likely that Windows also takes notes in other locations when a file is moved there via Windows.You may find that you can do the above, but you may not achieve the desired result of the file appearing in the Recycle Bin window for example.<{POST_SNAPBACK}>doesn't the command prompt still include the 'undelete' command? can see file names and details, and recover files after deleting them... no gui to it, and it doesn't go to the recycle bin, but may provide enough of the functionality that you're looking for.
Jason_A Posted August 17, 2005 Posted August 17, 2005 A search on Google did not yield a way to do it, but did show a couple of freeware apps that can be called from the command line.http://www.optimumx.com/download/#EmptyRecycleBinhttp://hjem.get2net.dk/fec/software/erb/
BigDod Posted August 17, 2005 Posted August 17, 2005 (edited) doesn't the command prompt still include the 'undelete' command? can see file names and details, and recover files after deleting them... no gui to it, and it doesn't go to the recycle bin, but may provide enough of the functionality that you're looking for.<{POST_SNAPBACK}>I have checked and the command prompt under XP does not have the "undelete" command.EDIT:-Fixed typo Edited August 17, 2005 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
seandisanti Posted August 17, 2005 Posted August 17, 2005 I have checked and the command prompt under XP does not have the "undelete" command.EDIT:-Fixed typo<{POST_SNAPBACK}>Thanks for checking that, i wasn't sure but kind of hoped it would still be there...
blindwig Posted August 17, 2005 Posted August 17, 2005 I remember looking into this some time ago - there is no way to get the DOS delete command to move file to the recycle bin. There are some command-line 3rd party DELETE-replacement programs that will do this. You can also get a file undeleter that will recover files deleted in DOS (usually files are marked for delition in the file tables, but the sectors are not actually over-written until the drive is full). My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now