recycle-bin Questions

9

Solved

Currently I'm using the following function file.Delete(); But how can I use this function to send a file to the recycle bin instead of just deleting it outright?
Fernandez asked 19/7, 2010 at 15:23

30

Using Visual Studio Code Version 1.8.1 how do I restore a deleted file in the recycle bin?
Sella asked 21/12, 2016 at 15:3

4

I'm looking for a c# snippet which I can insert in a Windows service. The code must empty the recycle bin for all users on the computer. I have previously tried using SHEmptyRecycleBin (ref http:/...
Biskra asked 12/8, 2008 at 10:32

1

Solved

Currently I'm able to trash selected user files. The question is how to know whether the volume of that file supports trashing. For example, external USB sticks just have a local trash folder, whil...
Prayerful asked 23/12, 2015 at 10:35

5

Solved

I need a code to empty the recycling bin without conformation I have tried the simple del $Recycle.Bin but it says access denied even when elevated does any one know a code I could use.
Mikey asked 14/1, 2014 at 9:39

8

Solved

When using the rm command to delete files in Powershell, they are permanently deleted. Instead of this, I would like to have the deleted item go to the recycle bin, like what happens when files are...
Debase asked 2/2, 2009 at 1:47

14

Solved

Usually we delete the recycle bin contents by right-clicking it with the mouse and selecting "Empty Recycle Bin". But I have a requirement where I need to delete the recycle bin contents using the ...
Adriel asked 11/2, 2012 at 8:50

7

Solved

Is there a Qt function to move files to Recycle Bin instead of truly deleting them, for OSes that support it, or do I need to use OS-specific code?
Enfeoff asked 31/7, 2013 at 7:42

3

Moving files to the recycle bin and emptying the recycle bin are well documented, but how can a file be programmatically restored from the recycle bin?
Starobin asked 26/5, 2009 at 15:47

6

Solved

Java is the key here. I need to be able to delete files but users expect to be able to "undelete" from the recycle bin. As far as I can tell this isn't possible. Anyone know otherwise?
Duplicity asked 21/10, 2008 at 16:14

5

Solved

Ok, I have a script I am writing in powershell that will delete old files in the recycle bin. I want it to delete all files from the recycle bin that were deleted more than 2 days ago. I have done ...
Ammadis asked 2/4, 2014 at 15:29

2

I'm trying to delete files that are in the recycle bin by using python, but i can't find a way to do it. Thanks.
Volteface asked 7/2, 2017 at 12:2

1

Solved

It looks like on Cocoa there are many ways to move file/folder-directory to Trash: [[[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation] [[NSWorkspace sharedWorkspace]...
Murmurous asked 2/12, 2015 at 3:54

2

I made an app which is 40 MB (very big for me). But the real surprise is that I found the tmp directory is 300 MB! And I haven't saved any files in the document yet! All the files' names in tmp are...
Hornstein asked 5/3, 2012 at 8:24

3

Solved

I don't see any options for the FSPathMoveObjectToTrashSync() function for not following links. Here is what I have tried Create a link and a file [ 21:32:41 /tmp ] $ touch my_file [ 21:32:45 /t...
Greenes asked 17/5, 2010 at 19:41

2

I want to list the files that are in the recycle bin in Vista from the command line. So far I have this: dir C:\$Recycle.Bin /s /b >> recyclebin.txt This works alright, the output I get is...
Garbage asked 4/4, 2009 at 4:49

2

I'm looking for a way to put a folder (with subfolders) into a Recycle Bin with these conditions: It must be done silently -- without any Windows UI. The folder must never be permanently deleted....
Oppilate asked 18/5, 2014 at 9:34

1

Solved

I would like to have a function which retrieves me the filenames in the recycle bin (on win 7) with usage of c# code. The framework seems nothing to contain to achieve this. Directory.Getfiles() ...
Nourishment asked 6/8, 2013 at 3:34

1

Solved

Does Java 7 have a way to put files in recycle bin rather than delete on WIndows ? I know it doesn't exist in Java 6, but I really thought this was getting added to Java 7 but have been unable to f...
Ashia asked 27/8, 2012 at 14:26

5

I need to Move a file to recycle bin in .net 2003 I added microsft.visualbasic.runtime dll from refrence, but I could not able to get filesystem.deletedirectory, So what to do..Can any one help me...
Greggrega asked 6/4, 2009 at 11:18

2

Solved

I have an application which uses the FOF_ALLOWUNDO with SHFileOperation in order to move files to the recycle bin. Some removable drives do not have a recycle bin. In this case SHFileOperation del...
Sulphur asked 10/10, 2011 at 20:5

2

Solved

I'm trying to find out the 'correct' windows API for finding out the localized name of 'special' folders, specifically the Recycle Bin. I want to be able to prompt the user with a suitably localize...
Virago asked 31/8, 2008 at 19:44

3

I'm trying to move (delete) a file to a Trash Can (in Linux) using C++ (also using QT4 for GUI). Unfortunately it seems to be quite difficult to do so and as far as I can tell there isn't a unified...
Parkway asked 21/7, 2011 at 13:3

2

Solved

Possible Duplicate: How do I restore a file from the recycle bin using C#? Someone knows how to restore files from recycle bin using C# with the Windows API?.
Autoradiograph asked 17/5, 2011 at 1:28

3

Solved

I would like to add the next feature to my cross-platform PyQt4 application: when user selects some file and select "remove" action on it that file will be moved to Recycle Bin folder instead of be...
Seep asked 2/9, 2010 at 15:14

© 2022 - 2024 — McMap. All rights reserved.