using win2000.
This is the current method being used. A directory list is done one by one based on the path.txt sequence as below.
Code: Select all
echo on
for /f "usebackq delims=|" %%e in (path.txt) do (
dir /a:-d /b /s "%%e" >> list.dat
)
partial content of path.txt
Code: Select all
\\192.168.1.2\backup\current\log
\\mach_back\live\log
\\192.168.1.3\backup2\month2\log
\\serv_2\updated\log
Is there a method where the above process could run in parallel in a single batch file? Sequence is not important.
I went through for the past few weeks on dave' antonio's ed's including stackoverflow
http://www.dostips.com/forum/viewtopic.php?p=12508#p12508
http://www.dostips.com/forum/viewtopic.php?f=3&t=3107
the more i read, the more i am getting confused
The only working method at the moment is hard code the path in each separate batch file like below
Code: Select all
dir /a:-d /b /s "\\192.168.1.2\backup\current\log" >> list1.dat
and ran them by double click on windows. Running 4 batch/windows at a time. the end result files are concatenate
Code: Select all
copy *.dat combine.dat
currently going through the link below on the sixth time. It comes close, interesting is that the files are written on a single file. concatenate of files are not needed in the end. but do not get where to replace and edit the original code into this. lots of trial and error are still ongoing
Code: Select all
http://stackoverflow.com/questions/9337415/how-do-you-have-shared-log-files-under-windows