msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help Please

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB DOS
Author Message
kiran



Joined: 04 Oct 2007
Posts: 9

PostPosted: Tue Jul 31, 2007 4:28 am    Post subject: Help Please Reply with quote

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

Archived from group: microsoft>public>vb>dos
Back to top
View user's profile Send private message
Robert_Gagné



Joined: 04 Oct 2007
Posts: 1

PostPosted: Fri Aug 10, 2007 3:37 pm    Post subject: Re: Help Please Reply with quote

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


"kiran" a écrit dans le message de @microsoft.com...
> 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

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB DOS All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group