- Batch File to copy directories
- Posted by Jay on October 20th, 2005
I shall appreciate it if someone can tell me how to create a batch file to
copy a couple of directories to another drive on one machine. This needs to
be done regularly (as part of a backup), hence a batch file is being
considered to replace the currently used manual copy function.
Using Windows XP Pro - NTFS on this machine.
Thanks very much in anticipation.
Regards.
Jay
- Posted by Mikie G on October 20th, 2005
Jay wrote:
> I shall appreciate it if someone can tell me how to create a batch file to
> copy a couple of directories to another drive on one machine. This needs to
> be done regularly (as part of a backup), hence a batch file is being
> considered to replace the currently used manual copy function.
>
> Using Windows XP Pro - NTFS on this machine.
>
> Thanks very much in anticipation.
>
> Regards.
>
> Jay
Hi Jay, If finances are not a problem ther are several programs on the
market that can do everything like this, maybe even automatically.
ACRONIS TRUE IMAGE , NORTON GHOST AND others.
- Posted by Bob I on October 20th, 2005
make a text file with the instructions in it, for example
Xcopy C:\subdirectory1\*.* DriveLetterYouMapped:\directory1\*.*
Xcopy C:\subdirectory2\*.* DriveLetterYouMapped:\directory2\*.*
And when done. change the extention to .bat
Jay wrote:
> I shall appreciate it if someone can tell me how to create a batch file to
> copy a couple of directories to another drive on one machine. This needs to
> be done regularly (as part of a backup), hence a batch file is being
> considered to replace the currently used manual copy function.
>
> Using Windows XP Pro - NTFS on this machine.
>
> Thanks very much in anticipation.
>
> Regards.
>
> Jay
>
>
- Posted by Plato on October 20th, 2005
Jay wrote:
>
> I shall appreciate it if someone can tell me how to create a batch file to
> copy a couple of directories to another drive on one machine. This needs to
See if Second Copy will do the trick:
http://www.centered.com/download/sc2000.exe
--
http://www.bootdisk.com/
- Posted by Bob Huntley on October 20th, 2005
I use:
xcopy /E /R /D/Y "c:\documents and settings\Account 1\My Documents\aaa\*.*
" E:\Documents_RAID\aaa"
pause
1. The /E/R/D/Y switches tell it to overwrite the other copy of the file
with the same name if the one in Account 1 has a newer save date, do not
request my agreement to such over-writing, and to copy any directories and
their contents across in the same manner.
Just keep adding extra xcopy lines of the same format if you want to copy
the contents of other directories (in the sample above, "aaa" is the
directory cloned).
Mine backs-up 4 directories to 2 other hard disks - and it works fine.
2. The pause command means that you get a "Hit any key to continue" pause at
the end of the batch file, and you have to do this to close the Command
window it appears in. Gives you a chance to scroll back up in the window,
and read a list of files copied, check for error messages etc. (Once you're
sure its all working, you can delete this command if you wish).
Just copy as many xcopy lines as you need, plus the pause to a text file (I
use notepad) and save it as a *.bat file. To make life even easier, I've set
up a short-cut to the batch file, and use the <CONTROL><ALT><B> combination
(B for backup) to invoke it.
"Jay" <jay@no.spam> wrote in message
news:OaT3nwa1FHA.1168@TK2MSFTNGP10.phx.gbl...
>I shall appreciate it if someone can tell me how to create a batch file to
>copy a couple of directories to another drive on one machine. This needs to
>be done regularly (as part of a backup), hence a batch file is being
>considered to replace the currently used manual copy function.
>
> Using Windows XP Pro - NTFS on this machine.
>
> Thanks very much in anticipation.
>
> Regards.
>
> Jay
>
- Posted by Jay on October 20th, 2005
Thanks - that does appear to be a workable solution. We could not use the NT
back Up utility because we need to keep the back up documents uncompressed
and readable.Second Copy does seem to be able to copy directories "as is". I
already downloaded the evaluation version and will give it a try shortly.
Regards and thanks again.
Jay
"Plato" <|@|.|> wrote in message
news:435802c5$0$187$bb4e3ad8@newscene.com...
> Jay wrote:
>>
>> I shall appreciate it if someone can tell me how to create a batch file
>> to
>> copy a couple of directories to another drive on one machine. This needs
>> to
>
> See if Second Copy will do the trick:
> http://www.centered.com/download/sc2000.exe
>
>
>
>
>
>
> --
> http://www.bootdisk.com/
>
>
- Posted by Jay on October 20th, 2005
Thanks - right on the lines of what I was looking for! We could not use the
NT back Up utility because we need to keep the back up documents
uncompressed and readable.
Regards and thanks again.
Jay
"Bob Huntley" <bob.huntley@btinternet.com> wrote in message
news:dj942q$2cs$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com...
>I use:
>
> xcopy /E /R /D/Y "c:\documents and settings\Account 1\My
> Documents\aaa\*.* " E:\Documents_RAID\aaa"
> pause
>
> 1. The /E/R/D/Y switches tell it to overwrite the other copy of the file
> with the same name if the one in Account 1 has a newer save date, do not
> request my agreement to such over-writing, and to copy any directories and
> their contents across in the same manner.
> Just keep adding extra xcopy lines of the same format if you want to copy
> the contents of other directories (in the sample above, "aaa" is the
> directory cloned).
> Mine backs-up 4 directories to 2 other hard disks - and it works fine.
>
> 2. The pause command means that you get a "Hit any key to continue" pause
> at the end of the batch file, and you have to do this to close the Command
> window it appears in. Gives you a chance to scroll back up in the window,
> and read a list of files copied, check for error messages etc. (Once
> you're sure its all working, you can delete this command if you wish).
>
> Just copy as many xcopy lines as you need, plus the pause to a text file
> (I use notepad) and save it as a *.bat file. To make life even easier,
> I've set up a short-cut to the batch file, and use the <CONTROL><ALT><B>
> combination (B for backup) to invoke it.
>
>
> "Jay" <jay@no.spam> wrote in message
> news:OaT3nwa1FHA.1168@TK2MSFTNGP10.phx.gbl...
>>I shall appreciate it if someone can tell me how to create a batch file to
>>copy a couple of directories to another drive on one machine. This needs
>>to be done regularly (as part of a backup), hence a batch file is being
>>considered to replace the currently used manual copy function.
>>
>> Using Windows XP Pro - NTFS on this machine.
>>
>> Thanks very much in anticipation.
>>
>> Regards.
>>
>> Jay
>>
>
>
- Posted by Jay on October 20th, 2005
Thanks - that's exactly what I was looking for! We could not use the NT back
Up utility because we need to keep the back up documents uncompressed and
readable.
Regards and thanks again.
Jay
"Bob I" <birelan@yahoo.com> wrote in message
news:%23i3ZqDb1FHA.460@TK2MSFTNGP15.phx.gbl...
> make a text file with the instructions in it, for example
>
> Xcopy C:\subdirectory1\*.* DriveLetterYouMapped:\directory1\*.*
> Xcopy C:\subdirectory2\*.* DriveLetterYouMapped:\directory2\*.*
>
> And when done. change the extention to .bat
>
> Jay wrote:
>
>> I shall appreciate it if someone can tell me how to create a batch file
>> to copy a couple of directories to another drive on one machine. This
>> needs to be done regularly (as part of a backup), hence a batch file is
>> being considered to replace the currently used manual copy function.
>>
>> Using Windows XP Pro - NTFS on this machine.
>>
>> Thanks very much in anticipation.
>>
>> Regards.
>>
>> Jay
>
- Posted by Jay on October 20th, 2005
Thanks - Norton Ghost 2003 is already installed on this particular PC! And
the system is backed up every weekend. The need right now is just to copy a
couple of folders with updated working documents every 10 days or so! We
could not use the NT back Up utility because we need to keep the back up
documents uncompressed and readable.
Regards and thanks again.
Jay
"Mikie G" <francisco9@att.net> wrote in message
news:1129836821.046779.88030@g49g2000cwa.googlegro ups.com...
>
> Jay wrote:
>> I shall appreciate it if someone can tell me how to create a batch file
>> to
>> copy a couple of directories to another drive on one machine. This needs
>> to
>> be done regularly (as part of a backup), hence a batch file is being
>> considered to replace the currently used manual copy function.
>>
>> Using Windows XP Pro - NTFS on this machine.
>>
>> Thanks very much in anticipation.
>>
>> Regards.
>>
>> Jay
>
> Hi Jay, If finances are not a problem ther are several programs on the
> market that can do everything like this, maybe even automatically.
> ACRONIS TRUE IMAGE , NORTON GHOST AND others.
>
- Posted by Bob I on October 21st, 2005
You're welcome, have a good day!
Jay wrote:
> Thanks - that's exactly what I was looking for! We could not use the NT back
> Up utility because we need to keep the back up documents uncompressed and
> readable.
>
> Regards and thanks again.
>
> Jay
>
>
> "Bob I" <birelan@yahoo.com> wrote in message
> news:%23i3ZqDb1FHA.460@TK2MSFTNGP15.phx.gbl...
>
>>make a text file with the instructions in it, for example
>>
>>Xcopy C:\subdirectory1\*.* DriveLetterYouMapped:\directory1\*.*
>>Xcopy C:\subdirectory2\*.* DriveLetterYouMapped:\directory2\*.*
>>
>>And when done. change the extention to .bat
>>
>>Jay wrote:
>>
>>
>>>I shall appreciate it if someone can tell me how to create a batch file
>>>to copy a couple of directories to another drive on one machine. This
>>>needs to be done regularly (as part of a backup), hence a batch file is
>>>being considered to replace the currently used manual copy function.
>>>
>>>Using Windows XP Pro - NTFS on this machine.
>>>
>>>Thanks very much in anticipation.
>>>
>>>Regards.
>>>
>>>Jay
>>
>
>
- Posted by Plato on October 21st, 2005
Jay wrote:
>
> Thanks - that does appear to be a workable solution. We could not use the NT
> back Up utility because we need to keep the back up documents uncompressed
> and readable.Second Copy does seem to be able to copy directories "as is". I
> already downloaded the evaluation version and will give it a try shortly.
If you have a home network, and pcs with second hard drives, eg the kids
boxes, it's an easy way to keep your stuff backed up to the hour,
non-compressed, non-special file, etc. Just plain old file backup. You
dont even notice it's running. And, can be set for a low impact mode or
whatever it's called 
> > See if Second Copy will do the trick:
> > http://www.centered.com/download/sc2000.exe