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
pxfragonard

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
Tekno Venus

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
pxfragonard

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
Duzzy

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
pxfragonard

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
Duzzy

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
pxfragonard

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
Thread Forum
GPEDIT.MSC blocks win10 upgrade (finally) can I automate with script?
I followed a post by "Brink" which says that using gpedit.msc on win 7 and 8 "pro" machines one can block the win10 upgrade by through Group Policy Objects by "enabling" and therefore blocking OS upgrades to the latest version through win update. I did this manually and even later tried to...
Windows Updates & Activation
Script to automate this task?
Hello all, Sorry if this is in the wrong place, I wasn't sure where it should be, so excuse me if I'm incorrect. I have a task that needs to be performed today. We are changing a .txt file on multiple computers (about 10) for a program we have. I was planning on just \\xxx.xxx.xxx.xxx\c$...
General Discussion
Does anyone have a working script for windows update? to automate it?
Hello all, For platform: Windows 7 Professional x64 I need a way to automate windows update with a .vbs script if possible. I'm not familiar with power shell so I prefer a .vbs script. I have searched and searched but have not been able to find a reliable .vbs script. I need it not to...
Windows Updates & Activation
Moving backup files from Vista to Windows 7
As my Vista machine was failing I did a full system backup. I did not do a simple file backup. That machine is now dead. Now I need to move the files within the system backup to my new Windows 7 Home Premium 64 bit machine but I'm not finding any way to accomplish this. Any help would be...
Backup and Restore
Moving Vista Backup Files To New 7 Machine
While waiting for my new computer to arrive, I'm researching. My 5 year old Dell XPS died last Thursday. File backup ran last Wednesday to my 1TB external HD. Yesterday, ordered HPE_180t running Windows 7. Will 7 recognize my files on the external for a smooth and easy transfer?
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 16:42.
Twitter Facebook Google+