homwwork backup help

Questions about programming languages and debugging
Post Reply
User avatar
Kirk
suck-o enforcer
suck-o enforcer
Posts: 547
Joined: 25 Apr 2009, 16:00
14
Contact:

homwwork backup help

Post by Kirk »

i am trying to think of a way to backup my homework (a file located on my desktop) to a flash drive plugged into a USB slot. I don't want to use a program to do this. too easy and i dont really learn anything. instead i want to write a .bat file to execute my DOS screen. I then want to delete my old copy and copy over my new one. easy enough. I think i know how but am looking for some advise or ideas that may be better.

User avatar
ph0bYx
Staff Member
Staff Member
Posts: 2039
Joined: 22 Sep 2008, 16:00
15
Contact:

Post by ph0bYx »

Here's my suggestion:

Code: Select all

del G:\backup
md G:\backup
copy C:\homework\* G:\backup\
exit
Save as name.bat

This will delete the previous "backup" folder and create a new blank "backup" folder, and copy files from homework folder to the backup. This is in case that you want a new folder every time. In case you already have a folder (e.g. G:\backup) created, and want only the content to delete, use this:

Code: Select all

del G:\backup\*
copy C:\homework\* G:\backup\
exit
You will be asked in the cmd if you're sure before deleting anything.

User avatar
Pong18
Cyber Mushroom
Cyber Mushroom
Posts: 357
Joined: 20 May 2009, 16:00
14
Location: Manila, Philippines
Contact:

Post by Pong18 »

why not just mirror the partition where your homeworks are located? you can use the run > diskmgmt.msc from within windows to do this. google for mirrored volume to learn more about this method. its easy yet you learn. not like some program that does the trick like eating nuts.
Image

Post Reply