automatically delete/move files to folders


  1. Posts : 57
    xp, w7
       #1

    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
    Last edited by Brink; 26 Sep 2009 at 18:25. Reason: link removed
      My Computer


  2. Posts : 4,573
       #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 Computer


  3. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #3

    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 Computer


  4. Posts : 4,573
       #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 Computer


  5. Posts : 57
    xp, w7
    Thread Starter
       #5

    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 :)
    markus

      My Computer


  6. Posts : 72
    Windows 7 build 7600 64 bit
       #6

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 12:49.
Find Us