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

pxfragonard

New member
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

Computer Manufacturer/Model Number
HP Pavilion p6745f
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i5-2300 CPU @ 2.80GHz
Motherboard
PEGATRON CORPORATION 2AB6
Memory
6 GB
Graphics Card(s)
Radeon 6750 1gb
Sound Card
(1) IDT High Definition Audio CODEC (2) Intel(R) Display A
Monitor(s) Displays
Acer x193w
Hard Drives
(1) WDC WD15EARS-60MVWB0 (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD-Picture USB Device (6) WD My Book 1110 USB Device
PSU
Internal 500W (100V-240V)
Case
Mid-size ATX
Cooling
unknown
Keyboard
HP usb multimedia keyboard
Mouse
HP usb compliant mouse
Internet Speed
256 kbps
Other Info
Ver: CHI_713.bin vCHI7.13

My Computer

Computer Manufacturer/Model Number
Dell XPS 15 L502x
OS
Windows 7 Home Premium 64bit (O.E.M)
CPU
Intel Core i7 2630QM @2.00GHz
Memory
6GB DDR3
Graphics Card(s)
Intel Intergrated Graphics 3000, nVidia GT525M (1GB)
Screen Resolution
1366x768
Hard Drives
750GB Seagate 7200rpm
Keyboard
Backlit Dell XPS 15 L502x Keyboard
Mouse
Microsoft Wireless Mobile Mouse 4000
Internet Speed
2.5 Mb/s down, 0.36 up
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. http://www.sevenforums.com/tutorials/12444-task-scheduler-create-new-task.html

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

Computer Manufacturer/Model Number
HP Pavilion p6745f
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i5-2300 CPU @ 2.80GHz
Motherboard
PEGATRON CORPORATION 2AB6
Memory
6 GB
Graphics Card(s)
Radeon 6750 1gb
Sound Card
(1) IDT High Definition Audio CODEC (2) Intel(R) Display A
Monitor(s) Displays
Acer x193w
Hard Drives
(1) WDC WD15EARS-60MVWB0 (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD-Picture USB Device (6) WD My Book 1110 USB Device
PSU
Internal 500W (100V-240V)
Case
Mid-size ATX
Cooling
unknown
Keyboard
HP usb multimedia keyboard
Mouse
HP usb compliant mouse
Internet Speed
256 kbps
Other Info
Ver: CHI_713.bin vCHI7.13
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 - http://www.sevenforums.com/tutorials/187346-robocopy-create-backup-script.html.

"@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

Computer Manufacturer/Model Number
Self built
OS
Windows 7 Ultimate x64
CPU
Intel Pentium Dual Core E5200 2.5GHz (3.77GHz OC)
Motherboard
Asus P5Q-E
Memory
Corsair 4GB DDR2 (4x1GB CM2X1024-6400C4)
Graphics Card(s)
Palit GeForce GTS 250 (1024MB)
Sound Card
On Board (ADI AD2000B 8ch HD)
Monitor(s) Displays
Samsung 32in LCD TV
Screen Resolution
1360x768
Hard Drives
2 x 1TB Samsung 103SJ (Raid0)
2 x External 500GB Samsung 502IJ (NexStar 3 HD Enclosures)
PSU
550W Antec Neo HE 550
Case
Antec P180
Cooling
Xigmatex Red Scorpion CPU Cooler. 3x120mm Fans
Keyboard
Logitech MX5000 Laser (Combo)
Mouse
Logitech MX5000 Laser (Combo)
Internet Speed
ADSL2+ (avg 10 Mbps Down, 0.80 Mbps up)
Other Info
Gigabyte GN-WP01GS 54g Wireless Lan Card
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 - http://www.sevenforums.com/tutorials/187346-robocopy-create-backup-script.html.

"@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

Computer Manufacturer/Model Number
HP Pavilion p6745f
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i5-2300 CPU @ 2.80GHz
Motherboard
PEGATRON CORPORATION 2AB6
Memory
6 GB
Graphics Card(s)
Radeon 6750 1gb
Sound Card
(1) IDT High Definition Audio CODEC (2) Intel(R) Display A
Monitor(s) Displays
Acer x193w
Hard Drives
(1) WDC WD15EARS-60MVWB0 (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD-Picture USB Device (6) WD My Book 1110 USB Device
PSU
Internal 500W (100V-240V)
Case
Mid-size ATX
Cooling
unknown
Keyboard
HP usb multimedia keyboard
Mouse
HP usb compliant mouse
Internet Speed
256 kbps
Other Info
Ver: CHI_713.bin vCHI7.13
No problems. Let us know how it goes or if you need any further help with it.
 

My Computer

Computer Manufacturer/Model Number
Self built
OS
Windows 7 Ultimate x64
CPU
Intel Pentium Dual Core E5200 2.5GHz (3.77GHz OC)
Motherboard
Asus P5Q-E
Memory
Corsair 4GB DDR2 (4x1GB CM2X1024-6400C4)
Graphics Card(s)
Palit GeForce GTS 250 (1024MB)
Sound Card
On Board (ADI AD2000B 8ch HD)
Monitor(s) Displays
Samsung 32in LCD TV
Screen Resolution
1360x768
Hard Drives
2 x 1TB Samsung 103SJ (Raid0)
2 x External 500GB Samsung 502IJ (NexStar 3 HD Enclosures)
PSU
550W Antec Neo HE 550
Case
Antec P180
Cooling
Xigmatex Red Scorpion CPU Cooler. 3x120mm Fans
Keyboard
Logitech MX5000 Laser (Combo)
Mouse
Logitech MX5000 Laser (Combo)
Internet Speed
ADSL2+ (avg 10 Mbps Down, 0.80 Mbps up)
Other Info
Gigabyte GN-WP01GS 54g Wireless Lan Card
Will do. thanks!
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion p6745f
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i5-2300 CPU @ 2.80GHz
Motherboard
PEGATRON CORPORATION 2AB6
Memory
6 GB
Graphics Card(s)
Radeon 6750 1gb
Sound Card
(1) IDT High Definition Audio CODEC (2) Intel(R) Display A
Monitor(s) Displays
Acer x193w
Hard Drives
(1) WDC WD15EARS-60MVWB0 (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD-Picture USB Device (6) WD My Book 1110 USB Device
PSU
Internal 500W (100V-240V)
Case
Mid-size ATX
Cooling
unknown
Keyboard
HP usb multimedia keyboard
Mouse
HP usb compliant mouse
Internet Speed
256 kbps
Other Info
Ver: CHI_713.bin vCHI7.13
Back
Top