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,
markus

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

Windows 8.1 Pro with Media Center
 
 

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.

Kari

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 Windows 7 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
markus

My System SpecsSystem Spec
03 Nov 2009   #6

Windows 7 build 7600 64 bit
 
 

if i understood this right, the following could help:

Code:
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:
Code:
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:

Code:
xcopy C:\DUMP\*.jpg C:\jpg\ /d:%m%-%d%-%y%
the following bat did it correctly, but thisone is without the dates:
Code:
@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
pause
also look at all the options xcopy has to offer

- hakon

edit:
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
Reply

 automatically delete/move files to folders




Thread Tools



Similar help and support threads for2: automatically delete/move files to folders
Thread Forum
Can't move folders but can copy and delete them General Discussion
Unable to delete, rename, or move folders in Windows 7 General Discussion
Program to automatically move files as created by Fraps General Discussion
Automatically delete files Performance & Maintenance
Solved Help, why can't I rename,delete or move some .mkv files? General Discussion
Solved Unable to Delete/Move Some Files General Discussion
automatically move files 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 08:32 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33