Dos xcopy batch command

H

Haggas

I have Windows XP pro
I would like to write a batch command with Xcopy that
would copy and update files in directories on my C drive
to an external hard drive.

I only want to update files I've edited on C and put them
on the external drive, I don't want to keep copying files
that haven't been updated. I have a NTFS C drive and my
external is 32.

I've tried xcopy C:\(name of directory)\*.* H (External
harddrive letter):\(name of directory)/n/v but it just
copies all the files, not just the updated ones.
 
G

Guest

Re-post

found out how to use the xcopy command to copy files to
another drive, and do several backups at once, and using
scheduled tasks:

My Example: (All in one batch file)

xcopy /D:08-12-03 /v /y "C:\Docume~1
\mark\mydocu~1" "D:\Not copied to CD\Docs"
xcopy /D:08-12-03 /v /y "C:\Documents and
settings\mark\my documents\my pictures" "D:\Not copied to
CD\pics"
xcopy /D:08-12-03 /v /y "C:\Docume~1\mark\mydocu~1\my
music" "D:\Not copied to CD\music"
xcopy /D:08-12-03 /v /y "C:\Documents and Settings\All
Users\Documents\private" "D:\Not copied to CD\private"

/ v verifies each new file
/ y suppresses confirmation to overwrite existing files
/ D:month-day-year Only copies files modified on or after
set date.



More details here:

http://www.ahuka.com/backup/backup3.html
 
R

Robert

Haggas said:
I have Windows XP pro
I would like to write a batch command with Xcopy that
would copy and update files in directories on my C drive
to an external hard drive.

I only want to update files I've edited on C and put them
on the external drive, I don't want to keep copying files
that haven't been updated. I have a NTFS C drive and my
external is 32.

I've tried xcopy C:\(name of directory)\*.* H (External
harddrive letter):\(name of directory)/n/v but it just
copies all the files, not just the updated ones.
_________________________________

Hi!

Use XXCOPY from http://www.xxcopy.com

it has ALL the options and is freeware.
 
A

Alex Nichol

Haggas said:
I have Windows XP pro
I would like to write a batch command with Xcopy that
would copy and update files in directories on my C drive
to an external hard drive.

I only want to update files I've edited on C and put them
on the external drive, I don't want to keep copying files
that haven't been updated. I have a NTFS C drive and my
external is 32.

I've tried xcopy C:\(name of directory)\*.* H (External
harddrive letter):\(name of directory)/n/v but it just
copies all the files, not just the updated ones.

You want to use the /M switch in XCOPY - that copies then only files
with the A (Archive) attribute set, and turns it off again. The
attribute will then be set for any file on any occasion you modify it

Give XCOPY /?
for full details of all the many switches
 
N

NobodyMan

You need the NT Resource Kit utility Robocopy.

Dave



| I have Windows XP pro
| I would like to write a batch command with Xcopy that
| would copy and update files in directories on my C drive
| to an external hard drive.
|
| I only want to update files I've edited on C and put them
| on the external drive, I don't want to keep copying files
| that haven't been updated. I have a NTFS C drive and my
| external is 32.
|
| I've tried xcopy C:\(name of directory)\*.* H (External
| harddrive letter):\(name of directory)/n/v but it just
| copies all the files, not just the updated ones.

Dave,

Don't post binary files to a text newsgroup. I didn't want your
binary crap on my computer.
 
D

David H. Lipman

Actually posting a ZIP file that contains a DOC file that has instructions on a Microsoft
product or utility is fully acceptable. While the name 'binaries' is not included in the
name of the MS News Group hierarchy, posting log files and support files is acceptable.
Posting an executable file is not.

If you don't like it, don't download the ZIP file.

BTW: All the files that reside on your computer are already binary files.

Dave




| Don't post binary files to a text newsgroup. I didn't want your
| binary crap on my computer.
|
 
N

NobodyMan

| Don't post binary files to a text newsgroup. I didn't want your
| binary crap on my computer.
|

Actually posting a ZIP file that contains a DOC file that has instructions on a Microsoft
product or utility is fully acceptable. While the name 'binaries' is not included in the
name of the MS News Group hierarchy, posting log files and support files is acceptable.
Posting an executable file is not.

Agreed that exe files are totally unacceptable. General USENET
netiquette, however, is that no BINARY file should be uploaded into a
newsgroup that is considered a text-only group (ie, doesn't have
"binary" in the title).
If you don't like it, don't download the ZIP file.

I use Agent. It pulls down the article, including any included binary
attachments, automatically. I have to go back and delete the
attachment manually.
BTW: All the files that reside on your computer are already binary files.

Dave

Duh. Thanks for that simple primer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top