Sign in to follow this  
Followers 0
ElSoloMar

Deliting from DOS Command-line to Recycle Bin

7 posts in this topic

Guys,

:dance: Do any of you know how to delete a file from the DOS command-line to the recycle bin? This is, not :whistle: 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!

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by BigDod


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

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...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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).

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0