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: A script to automate moving files off C: prior to backup?

06 Apr 2012   #1

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 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 System SpecsSystem Spec
.

06 Apr 2012   #2

Windows 7 Home Premium 64bit (O.E.M)
 
 

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 System SpecsSystem Spec
06 Apr 2012   #3

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Tekno Venus View Post
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 System SpecsSystem Spec
.


06 Apr 2012   #4

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
07 Apr 2012   #5

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Duzzy View Post
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 System SpecsSystem Spec
07 Apr 2012   #6

Windows 7 Ultimate x64
 
 

No problems. Let us know how it goes or if you need any further help with it.
My System SpecsSystem Spec
07 Apr 2012   #7

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Will do. thanks!
My System SpecsSystem Spec
Reply

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




Thread Tools



Similar help and support threads for2: A script to automate moving files off C: prior to backup?
Thread Forum
ROBOCOPY - Create Backup Script Tutorials
CMD or Powershell Moving - script not working General Discussion
Need help on backing up files prior to upgrading WIN7 to 64 bit. Installation & Setup
Automate Merging PDF files General Discussion
Trouble moving backup files from external drive to computer Backup and Restore
Moving backup files from Vista to Windows 7 Backup and Restore
Moving Vista Backup Files To New 7 Machine Backup and Restore

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 11:07 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