A script to automate moving files off C: prior to backup?


  1. Posts : 339
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #1

    A script to automate moving files off C: prior to backup?


    I back up my files and system image weekly. I move the recorded TV shows (broadcast TV, nothing illegal) before that from my hard drive onto an external drive. Another drive in the same cabinet does the backup. It saves time and I won't want those files after a disc failure anyway.

    It would be cool to be able to program the computer to move those files (but not subfolders) over at, say 11.05 pm in preparation for the midnight backup.

    But I'm no programmer. If you can show me how to do it I'll begin learning how to do this kind of thing.

    It would be easier to put the recorded TV in a subfolder though I suppose... then no code would have to be written to ignore subfolders, right?

    Any arrows pointing to easy-to-understand external pages on scripting, the language, would be appreciated too.
      My Computer


  2. Posts : 719
    Windows 7 Home Premium 64bit (O.E.M)
       #2

    I'm not a programmer either but this link may help. How To Move Files With A Batch File | mixeduperic.com. Create the file to move the files and then schedule it with task scheduler. Task Scheduler - Create New Task

    Stephen
      My Computer


  3. Posts : 339
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
    Thread Starter
       #3

    Tekno Venus said:
    I'm not a programmer either but this link may help. How To Move Files With A Batch File | mixeduperic.com. Create the file to move the files and then schedule it with task scheduler. Task Scheduler - Create New Task

    Stephen
    Thanks, Stephen. That looks like it might work but I wonder what's meant by full path. I won't know what files will need to be moved but I will know their extension. I know using the asterisk can signify any and all files of this type. Am I correct that I don't need to know the names? (If I did need them I'd just have to do it manually anyway).
      My Computer


  4. Posts : 640
    Windows 7 Ultimate x64
       #4

    Move won't allow you to move multiple files with one line but you can try the following code in a batch file. Test it on some test files untill you understand what it's doing.
    Code:
    @echo off
    robocopy "C:\Source" "C:\Destination" /MOV /R:10 /LOG:C:\Backup_Log.txt /TEE /X /V
    Type "robocopy /?" for more information on what the switches mean. Also this page might provide some more info - ROBOCOPY - Create Backup Script

    "@echo off" just stops the cmd window from displaying the command that's being run. You can also put "pause" on a new line at the end to stop the cmd window from closing automatically but the same info displayed will be in the log file.
      My Computer


  5. Posts : 339
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
    Thread Starter
       #5

    Duzzy said:
    Move won't allow you to move multiple files with one line but you can try the following code in a batch file. Test it on some test files untill you understand what it's doing.
    Code:
    @echo off
    robocopy "C:\Source" "C:\Destination" /MOV /R:10 /LOG:C:\Backup_Log.txt /TEE /X /V
    Type "robocopy /?" for more information on what the switches mean. Also this page might provide some more info - ROBOCOPY - Create Backup Script

    "@echo off" just stops the cmd window from displaying the command that's being run. You can also put "pause" on a new line at the end to stop the cmd window from closing automatically but the same info displayed will be in the log file.
    Thanks very much for your response.

    I will certainly mark solved when I get some more feedback. Right now I have a couple of very different responses and a lot of stuff to think about. Good stuff! Very interesting!
      My Computer


  6. Posts : 640
    Windows 7 Ultimate x64
       #6

    No problems. Let us know how it goes or if you need any further help with it.
      My Computer


  7. Posts : 339
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
    Thread Starter
       #7

    Will do. thanks!
      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 18:02.
Find Us