Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How can I change the windows 'delete' function?

03 May 2017   #1
TheStraying11

Windows 7 Professional 64bit.
 
 
How can I change the windows 'delete' function?

Hi, I was wondering if its possible to have the 'delete' function in windows 7 professional move deleted files to another drive instead of just 'listing them as deleted' to save space on the main drive while still allowing the files to be recovered from a backup drive. I say this because i currently have little space left on my main drive, I have already moved my downloads folder and i'd like to do the same with the recycle bin, I know nothing normally is moved when deleted, but i'd like it to be moved to D:\Deleted


My System SpecsSystem Spec
.
03 May 2017   #2
LMiller7

Windows 7 Pro 64 bit
 
 

Welcome to the forum.

Windows does not have this feature. I suppose it could be done but would require some rather advanced programming and likely be quite fragile. This isn't really a practical idea.
My System SpecsSystem Spec
03 May 2017   #3
Barman58

Windows 10 Pro x64 x2 Windows 10 Enterprise x64, Ubuntu
 
 

Have you considered a more manual option ?

Use the delete/recycle bin system as usual and then at the end of each day open the recycle bin and drag the contents you wish to retain (or All), to your location D:\deleted you could even add a subfolder for each Day/Week/Or Month to improve retrieval later if required.

I have manually checked and manually moving the files from the recycle bin works (on latest Windows 10 pro )

You would also have to decide what happens with duplicate files if the same named file is deleted in the same period more than once, also some files are too large for the recycle Bin these you would have to manually move to your D:\deleted and not deleted which would actually delete them

It may be possible to achieve this programmatically, with Powershell or other scripting system and a scheduled task at a convenient time / Log-on or Log-Off Etc. but this would be beyond my skillset - there are a number of powershell script libraries across the net which may have what you need
My System SpecsSystem Spec
.

03 May 2017   #4
TheStraying11

Windows 7 Professional 64bit.
 
 

Quote   Quote: Originally Posted by Barman58 View Post
It may be possible to achieve this programmatically, with Powershell or other scripting system and a scheduled task at a convenient time / Log-on or Log-Off Etc. but this would be beyond my skillset - there are a number of powershell script libraries across the net which may have what you need
I suppose i could try this solution, Thank you for your replies. though i really had hoped this could be done, i guess i was hoping too much of microsoft... Never mind, Thank you for the suggestion, I'll have to find out what languages can be used to do this as i know very few but it is a possibilty, Again, thanks

EDIT:
For anyone looking for a solution, i used the batch script below

Code:
SET Today=%Date:~10,4%%Date:~4,2%%Date:~7,2%
mkdir D:\Deleted\%Today%
move C:\$Recycle.Bin\S-1-5-21-3881916912-2168856619-4228707496-1000\* D:\Deleted\%Today%
SET Today=
And set it to run on startup. You may need to change the directories after 'mkdir' and 'move' to suit your needs if you decide to use this script yourself.

Source
My System SpecsSystem Spec
Reply

 How can I change the windows 'delete' function?




Thread Tools




Similar help and support threads
Thread Forum
with 7 Starter, can I change function keys
With my Gateway netbook, using Windows 7 starter, can the function keys be toggled so that say F8 will perform what the program I am in wants instead of decrease sound, without pressing the Fn key each time?
Customization
Can't delete files or change ownership
I just installed Windows 7 Enterprise 64-bit on two machines, and then Firefox 16.0.1 on each. Trying to replace the password files in my new Firefox profile, I found that many of these folders and files (in User\me\AppData\Roaming\Mozilla) cannot be deleted, nor can their ownership be changed. ...
General Discussion
change drive letter, affects program function?
i have most of my programs installed to a drive (partition) other than C: so if i change the drive letter of that partition, i'm pretty sure that all of the references to all of those programs in the registry will not be updated accordingly... so then some of the programs won't be able to...
General Discussion
Delete Account Function Missing I Cannot Delete Temporary User Account
Good Day Everyone a few hours ago, I just finished installing Windows Professional x32 and had a problem with deleting the windows.old because of the permission bug. Well I managed to delete the Windows.old by editing my security and user however when I log-offed, I saw another user account...
General Discussion
Delete function not working
Hi, Unfortunately today I have encountered a very strange problem. Everything works fine on my laptop except the Delete function. When I try to delete a file/folder I am prompted with the usual message asking whether I am sure that I want to delete and as soon as I press the ok nothing happens....
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:21.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App