Re: xcopy to copy from one drive to another
- From: "Tracy" <tracy_lpt@xxxxxxxxx>
- Date: Mon, 29 Jan 2007 17:32:32 -0500
I found my fix, i think...but I was waiting until I could fully confirm the
copy of ALL files and folders (empty or not) werer copied).
But, a few questions first:
1. What does the XFSave do????
2. Would the /D make the copying process faster?
3. Will the /V cause the copying process to take longer?
4. If I don't use /R, will those files not be copied?
I found my fix that was explained in much greater detail than MS states (see
link below):
My .bat file is this:
xcopy F:\ G:\ /y/e/i/s/exclude:monthly.txt
In the same folder at the .bat file is a .txt file called: monthly.txt
The montly.txt file, when I open it, says:
F:\gobackio.bin
Any line in the monthly.txt file will be excluded (which I WILL be adding
the Recycler and System Volume Information path on the next test run).
With that setup, I think all is working as it should now....hidden and
system files
are all being copied, with the exception of the file gobackio.bin.
I found the fix at:
http://www.brown.edu/Departments/Psychology/documentation/backup.html
Tracy
"Bob Harris" <rharris270[SPAM]@hotmail.com> wrote in message
news:uzmKh$%23QHHA.412@xxxxxxxxxxxxxxxxxxxxxxx
To exclude files, use the XCOPY option called "/EXCLUDE". At a command
prompt, type XCOPY /? for more information.
See sample below, which excludes all files described in EXCLUDE.TXT (There
is nothing special about this name; any *.txt file could be used).
XCOPY F:\*.* D:\XFSAVE /S /V /H /D /R /EXCLUDE:EXCLUDE.TXT
contents of my EXCLUDE.TXT file:
\RECYCLED\
\SYSTEM VOLUME INFORMATION\
\TEMP\
You can also specify single files or files with specific extensions.
"Tracy" <tracy_dsk@xxxxxxxxx> wrote in message
news:1pydnUftvMVJyyDYnZ2dnUVZ_vShnZ2d@xxxxxxxxxxxxxx
I'm trying to create a batch file so that all my files on my 2nd hard
drive
(which is F:) are copied to my external usb hard drive (which is G:)
Also...I want to NOT copy one file called gobackio.bin and the 2 folders
called Recycler and System Volume Information
I've tried using all the various ways that I can think of.
I've copied the line that I use for another xcopy but it still won't work
I want to keep the same variables at the end
xcopy F:\ G:\ /y/i/s/h/
but....that line just won't work. All I can get (from a screen shot) is
this that shows in the window:
F:\zBackups>xcopy F:\ G:\ /y/i/s/h
F:\gobackio.bin
and...there it ends...no copying is done at all.
I've tried using:
xcopy F:\*.* G:\ /y/i/s/h
xcopy F:\* G:\ /y/i/s/h
xcopy F:\*.* \G:\ /y/i/s/h
xcopy F:\ \G:\ /y/i/s/h
xcopy F:\*.* G: /y/i/s/h\
and, I think all other variations of that.
What am I doing wrong?
Tracy
.
- References:
- xcopy to copy from one drive to another
- From: Tracy
- Re: xcopy to copy from one drive to another
- From: Bob Harris
- xcopy to copy from one drive to another
- Prev by Date: Re: Slow System
- Next by Date: Re: "ntuser.dat in use" after complete shutdown?
- Previous by thread: Re: xcopy to copy from one drive to another
- Next by thread: Re: Virtual PC 2004 and Ghost
- Index(es):
Relevant Pages
|