M
mdtripla
This script runs on one machine at a time and each machine needs to be
able to append to the same flat file.
I have a few examples and can append results to a flat file but need
to check for various log files in 1 location and if they exist i need
to append the result to a flat file. this is what I have in a batch
file executed via batch blitz.
+++++++++++++++++++++++++++++++++++++++
echo \\%1 >> Fix_Chk.log
if exist \\%1\Admin$\kb823980.log echo MS03-026 >> Fix_Chk.log
if exist \\%1\Admin$\kb824146.log echo MS03-039 >> Fix_Chk.log
if exist \\%1\Admin$\kb823182.log echo MS03-041 >> Fix_Chk.log
if exist \\%1\Admin$\kb826232.log echo MS03-042 >> Fix_Chk.log
if exist \\%1\Admin$\kb828035.log echo MS03-043 >> Fix_Chk.log
if exist \\%1\Admin$\kb825119.log echo MS03-044 >> Fix_Chk.log
if exist \\%1\Admin$\kb824141.log echo MS03-045 >> Fix_Chk.log
echo =================================================================
+++++++++++++++++++++++++++++++++++++++
and here is the result in the flat file
+++++++++++++++++++++++++++++++++++++++
\\NFD00030652W2K
MS03-026
MS03-039
MS03-041
MS03-042
MS03-043
MS03-044
MS03-045
=================================================================
\\NFD00030685W2K
MS03-026
MS03-039
MS03-041
MS03-042
MS03-043
MS03-044
MS03-045
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
That is the information that I want but I need it to be laid out
differently like the following example. so It can be opened in excel
for reporting.
NFD00030652W2K MS03-026 MS03-039 MS03-041 MS03-042 MS03-043 MS03-044
Any help would be great.
Thanks,
Dustin
able to append to the same flat file.
I have a few examples and can append results to a flat file but need
to check for various log files in 1 location and if they exist i need
to append the result to a flat file. this is what I have in a batch
file executed via batch blitz.
+++++++++++++++++++++++++++++++++++++++
echo \\%1 >> Fix_Chk.log
if exist \\%1\Admin$\kb823980.log echo MS03-026 >> Fix_Chk.log
if exist \\%1\Admin$\kb824146.log echo MS03-039 >> Fix_Chk.log
if exist \\%1\Admin$\kb823182.log echo MS03-041 >> Fix_Chk.log
if exist \\%1\Admin$\kb826232.log echo MS03-042 >> Fix_Chk.log
if exist \\%1\Admin$\kb828035.log echo MS03-043 >> Fix_Chk.log
if exist \\%1\Admin$\kb825119.log echo MS03-044 >> Fix_Chk.log
if exist \\%1\Admin$\kb824141.log echo MS03-045 >> Fix_Chk.log
echo =================================================================
+++++++++++++++++++++++++++++++++++++++
and here is the result in the flat file
+++++++++++++++++++++++++++++++++++++++
\\NFD00030652W2K
MS03-026
MS03-039
MS03-041
MS03-042
MS03-043
MS03-044
MS03-045
=================================================================
\\NFD00030685W2K
MS03-026
MS03-039
MS03-041
MS03-042
MS03-043
MS03-044
MS03-045
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
That is the information that I want but I need it to be laid out
differently like the following example. so It can be opened in excel
for reporting.
NFD00030652W2K MS03-026 MS03-039 MS03-041 MS03-042 MS03-043 MS03-044
Any help would be great.
Thanks,
Dustin