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
Can I automate downloading numerous MP3 files?
Hi, I'm not sure if this is the correct location to post this thread. If not, I apologize. I am trying to download hundreds of legal MP3 files. They are old radio shows that are in the public domain. One of the webs site is: https://archive.org/details/OTRR_Suspense_Singles This is an...
General Discussion
CMD or Powershell Moving - script not working
set LISTFOLDER=D:\List\ set FILESPATH=D:\Igre\COD-MW2\main\images set DESTPATH=D:\Igre\COD-MW2\main\images\thepit REM for /r %LISTFOLDER% %%I in (*.txt) do echo xcopy /qvs "%FILESPATH%\%%~nxI" "%DESTPATH%%%~pnxI" for /r %LISTFOLDER% %%I in (*.txt) do xcopy /qvs "%FILESPATH%\%%~nxI"...
General Discussion
Need help on backing up files prior to upgrading WIN7 to 64 bit.
I need help or instructions on how to backup my PC before I upgrade to 64 bit. I understand that you must perform a clean install, I just need to know how to backup some files and/or applications before I proceed. Also, I would appreciate it if the instructions were like: 1. Open ... to backup...
Installation & Setup
Trouble moving backup files from external drive to computer
I backed up using an external drive prior to resetting HP desktoop to factory settings. When I tried to restore the files I couldn't find them in any of the libraries. Where did they go? I did reinstall programs like Microsoft Office 2003. How do I find them & put them back in the right place?...
Backup and Restore
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:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App