There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
audio avg avg 8 blue screen brand new codec control panel conversion crash delete personal data desktop display dos driver duplicate dvd error error message excel explorer file firefox game graphics hardware hijackthis log install installation internet itunes javascript laptop macro malware monitor msconfig msn music network outlook outlook 2003 outlook express php problem program random rundll32 security seo sound sp3 spyware switch tag cloud trojan usb video virtumonde virus vista visual basic vundo wallpaper windows windows vista windows xp wireless word xp sp3 youtube
Windows NT/2000/XP
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > Windows NT/2000/XP >
Using Xcopy In Windows 2000


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
aboone2's Avatar
Junior Member with 8 posts.
 
Join Date: May 2008
09-May-2008, 11:36 AM #1
Using Xcopy In Windows 2000
I need to write a command that will archive (copy all files and folders) that is on a drive on my computer once and then the next time I run the same command only copy the files that have changed. I know that I need to use XCOPY but I cant get the switches to work right. I need to copy from Z:\ to E:\ Can any one help. I would even settle for two commands one for the first time and and another for the second time.
Wanderer2's Avatar
Senior Member with 709 posts.
 
Join Date: Jan 2008
Experience: Advanced
09-May-2008, 12:04 PM #2
First batch file

@echo off
rem You first turn up the A attribute
z:
cd\
attrib *.* +a /s
rem Then you do your first xcopy which turns down the A flag
xcopy *.* e: /s /m

Second batch file
z:
cd\
xcopy *.* e: /s /m
rem /m turns down the a flag so you only copy files that are new and have the archive bit set - you run this batch only from then on.
aboone2's Avatar
Junior Member with 8 posts.
 
Join Date: May 2008
09-May-2008, 01:32 PM #3
RE: Using XCOPY in Windows 2000
Great will this copy just the new files or will it copy the files that have changed also. I need it to copy the files that have changed also.

Thanks,
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:41 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.