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: automatically delete/move files to folders

26 Sep 2009   #1

xp, w7
automatically delete/move files to folders

hi all!
is there something like a handy method to automatically move files depending on their extension to custom folders? (either by the time they are generated or at a specific date).
ps: b.) i would be also interested in finding a method to have windows7 delete files in custom folders at a certain date

looking forward to your answers,

My System SpecsSystem Spec
26 Sep 2009   #2


You can do that with DOS commands (batch file). Getting into the dates requires an advanced understanding of DOS.

Provide some details. We have some talented people here who know even better ways.
My System SpecsSystem Spec
26 Sep 2009   #3

Microsoft Community Contributor Award Recipient


If you know some DOS, you could do marvels with for example a XCOPY-based batch file. It is not a fully automated method, you still have to launch the batch.


automatically delete/move files to folders-xcopy.png

My System SpecsSystem Spec

26 Sep 2009   #4


You can launch a cmd file in startup or scheduler that checks the date and calls the cmd file.

Just today, I was reviewing a complex Day Of Week routine that I do with pst files.
My System SpecsSystem Spec
28 Sep 2009   #5

xp, w7

that sounds like a very good idea - i am old enough to remember some basic dos stuff - yet i could use some startup aid
so, provided i want to have win7 move all *.jpg, *.c4d, *.flam3 files from their original mutual folder "DUMP" to three individual folders JPG, C4D, FLAM3. how would i do that? by "moving" i mean that the files be deleted in the original folder.

thanx for helping :)

My System SpecsSystem Spec
03 Nov 2009   #6

Windows 7 build 7600 64 bit

if i understood this right, the following could help:

xcopy C:\DUMP\*.jpg C:\jpg\
xcopy C:\DUMP\*.c4d C:\c4d\
xcopy C:\DUMP\*.flam3 C:\flam3\
/D:m-d-y Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time.

also if you want to specify the date at the beginning of the batch without having to edit it each time you can use "set" like:
set /p d=Enter the Day: 
set /p m=Enter the Month: 
set /p y=Enter the Year:
it will create the variables d, m, and y, wich you can then put in the xcopy command like like:

xcopy C:\DUMP\*.jpg C:\jpg\ /d:%m%-%d%-%y%
the following bat did it correctly, but thisone is without the dates:
@echo off
xcopy C:\DUMP\*.jpg C:\DUMP\jpg\ /i
xcopy C:\DUMP\*.c4d C:\DUMP\c4d\ /i
xcopy C:\DUMP\*.flam3 C:\DUMP\flam3\ /i
also look at all the options xcopy has to offer

- hakon

and about the deleting part...dont see a option for that in xcopy, however you can use RoboCopy to do that.

robocopy /?

/MOV :: MOVe files (delete from source after copying).
/MOVE :: MOVE files AND dirs (delete from source after copying).
My System SpecsSystem Spec

 automatically delete/move files to folders

Thread Tools

Similar help and support threads
Thread Forum
Can't rename, move or delete apparently closed folders
Hi there. > It often happens that I try to rename, move or delete a CLOSED folder and get an error message saying that the folder is open or in use by some program. Yet no file from this folder is apparently open. > In Task Manager/Applications, Windows Explorer does not show, but Task...
General Discussion
Can't move folders but can copy and delete them
I'm running windows 7 Ultimate (up-to-date) and certain folders (mostly folders in my box sync map and program files) are treated as if they are in use by a program but process explorer tell's me that only system and explorer.exe use them. I don't know if system should be using folders or if...
General Discussion
Unable to delete, rename, or move folders in Windows 7
Okay, I have been scouring the net for the past 3 days nonstop to figure out this issue. I've tried literally everything. I am unable to delete, rename, or move folders in Windows 7. I've tried disabling thumbnail preview, I've cleared my thumbnail cache, I've run CCleaner, rebooted my...
General Discussion
Program to automatically move files as created by Fraps
Hey guys, I plan to record PC gameplay using Fraps, which creates very large files. In order for me to do so whilst still maintaining high FPS in game, I have to record to my SSD. However, this fills up very quickly. My idea is to make a program that automatically moves the recordings over to...
General Discussion
automatically move files
hi all! i was just wondering if there is a native w7 method that can move files to different folders depending on the file names. ie: i would like to save all my files to just one location and then w7 takes over and distributes the files to their respective folders. photo-test.jpg, text-test.doc,...
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 15:47.
Twitter Facebook Google+