Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i am using windows 2003 server and windows 7 as client.

i have one folder in drive D i want to SYNC that folder with server.

how can i write login script for that?


share|improve this question

migrated from Feb 26 '10 at 15:59

This question came from our site for professional and enthusiast programmers.

The robocopy command is bundled with Windows 7 and allows you sync a folder to another destination. Try adding robocopy to your login script like this:

robocopy d:\path\to\source s:\path\to\destination /MIR /Z

The /MIR option ensures that the destination folder always reflects the source folder.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.