Discussion:
Help Please
(too old to reply)
kiran
2007-07-31 07:28:14 UTC
Permalink
Hi All,
Can any one help me to write a batch file? my requirement is i want to copy
all files & folder recursive from c:\mfgpro path to h:\mfgpro & also i want
to the batch file to check if file or folder is deleted in c:\mfgpro the same
has to be deleted in h:\mfgpro.

TIA
Robert Gagné
2007-08-10 15:37:38 UTC
Permalink
You should try to use Robocopy that is available in windows server 2003
ressources kit (for free)

there is a good document included with it

and there is a /purge option that will erase file in destination if it been
erased from source

your command should look like this
Robocopy c:\mfgpro h:\mfgpro /E /NP /v /r:1 /w:1 /TEE /purge
/log:c:\backup.log
Post by kiran
Hi All,
Can any one help me to write a batch file? my requirement is i want to copy
all files & folder recursive from c:\mfgpro path to h:\mfgpro & also i want
to the batch file to check if file or folder is deleted in c:\mfgpro the same
has to be deleted in h:\mfgpro.
TIA
Loading...