need to bat a backup file folders to the second hard drive [documents folder] [batch file]
Q: do you know where I could find the instructions to a party one copy of some file folders to a second disk? All I know is that you can type the code into notepad and save as a. bat
as an example I would copy the user documents folder to same name folders c d
Re:if you use xcopy you can use the "xcopy /d" command.
From Microsoft.
//d[:mm-dd-yyyy]
Copies source files changed on or after the specified date only. If you do not include a mm-dd-yyyy value, xcopy copies all Source files that are newer than existing Destination files. This command-line option allows you to update files that have changed.
That will copy all files newer than the destination file.
Re:if U go the batch file route, use robocopy…
example use to copy from c:\crap to d:\crapbak
robocopy c:\crap\ d:\crapbak\ /e /z /eta /r:3 /w:3 /ox
cool thing about the /ox is its only for changed file, so it will go through and only copy the files that have changed since the last copy, thereby greatly reducing the time of the backup.
do a robocopy /? for a full listing of switches.
You'll need to download robocopy, its a free tool from Microsoft, just google it
Re:If you're using XP, you might want to investigate using the integral NTBACKUP utility (you'll find it under Start, All Programs, Accessories, System Tools)
Using NTBACKUP you can build jobs to perform more complex tasks such as incremental backups and registry backup, it is also more robust against issues like files being in use.
The backup program can also be scripted to execute jobs by Task Scheduler.
Re:You could either create a shortcut for the bat file and place it in the startup folder. or you could schedule a new task. scheduled tasks at microsoft (http://www.microsoft.com/windowsxp/home/using/productdoc/en/default.asp?url=/windowsxp/home/using/productdoc/en/agent_add_task.asp)
those are the two easiest I can think of.
good luck
Re:where would this file need to be placed in order to occur every time Windows loads? sort of 'scheduling' the backup?
Re:I would use in the bat file.
xcopy C:\Documents and Settings D:\Documents and Settings /s /e /h
the xcopy command at microsoft
xcopy link (http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/proddocs/xcopy.asp)
Related posts
Tags: batch file, documents folder