Talk About Network

Google





Software > Basic Dos > for...loop
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 660 of 700
Post > Topic >>

for...loop

by =?Utf-8?B?emlubw==?= <zino@[EMAIL PROTECTED] > May 14, 2008 at 01:10 PM

I need to use Eseutil utility from Microsoft Exchange sever to copy a large

folder(120 gig)

Eseutil does not accept * character, therefore I need to use it in a " for

..... in" DOS command.

the root folder to copy from contains subfolders and files and the
subfolder 
too contains subfolders and files. (each subfolder contains multi level of

subfolders and files with different extensions)


I need to use something as the following :

myRootFolder> for /R  %I in (.) do   for /D   %K in ("%I") do   mkdir %K  

for /F %G in (dir %K  /A:-D /B) do  Eseutil /Y \\server1\c$\%G  
/D\\server2\d$\%G

the command above is not correct. But what I'm trying is:
1- loop into each folder
2- get the folder name and create an empty similar one on the target(has
the 
same name)
3- fetch all the files under this folder
4- use Eseutil to copy the files one by one

can somebody point me in the right direction

thanks
 




 3 Posts in Topic:
for...loop
=?Utf-8?B?emlubw==?= <  2008-05-14 13:10:03 
Re: for...loop
"Tim Rude" <  2008-05-14 15:25:03 
Re: for...loop
"Bob Milutinovic&quo  2008-05-29 14:49:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 19:21:58 PST 2009.