Computing.Net > Forums > Windows Server 2003 > Server Copu batch

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Server Copu batch

Reply to Message Icon

Name: BryanInBC
Date: September 25, 2008 at 14:42:14 Pacific
OS: Windows Server 2003
CPU/Ram: 1.99GHz/ 2Gb RAM
Comment:

I'm trying to make a batch file that will copy userfiles from our Alberta-based server to our main office's local server.

What I got so far is:

xcopy \\jasper\users\%username%\*.* \\matterhorn\users\%username%\ /m /y /r

since I don't want to hog bandwidth, I'm trying to do it so the folder will only copy if marked with the archive bit. If someone could please help that would be great.

Bryan



Sponsored Link
Ads by Google

Response Number 1
Name: Jestible
Date: September 29, 2008 at 13:04:45 Pacific
Reply:

Doing a quick xcopy /? will help you out here.

I'm going to assume you want to remove the A tag after you copy it?
/m will copy the files only that have the A attribute on, then remove it after copying.

OR

/a switch will only copy files with the A set, but leave the attribute.

So it looks like the one you have pasted above is correct.

Holy Wow.


0
Reply to Message Icon

Related Posts

See More


Spoolsv.exe error Folder Permissions



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Server 2003 Forum Home


Sponsored links

Ads by Google


Results for: Server Copu batch

get the size report of share folder www.computing.net/answers/windows-2003/get-the-size-report-of-share-folder/6749.html

batch file will not run from scheduled tasks www.computing.net/answers/windows-2003/batch-file-will-not-run-from-scheduled-tasks/9254.html

FTP batch script www.computing.net/answers/windows-2003/ftp-batch-script/5436.html