<div>Hi Walter!</div>
<div> </div>
<div>I already looked at the code you suggested me to accomplish my goal, I made some changes on it to match mine, your code is very neat and nice. Here are some lines I changed:</div>
<ul>
<li>First I did the file search</li></ul>
<div>           file_list = []<br>           folders = None<br>           for root, folders, files in os.walk( &quot;C:\\&quot; ):<br>                file_list.extend(os.path.join(root,fi) for fi in files if fi.endswith(&quot;.shp&quot;))</div>

<ul>
<li>Then I create the excel, and asign the writing to the cells:</li></ul>
<p>           wksht = wrkbk.add_sheet(&#39;shp&#39;) <br>           wksht.row(0).write(0,&#39;archivo&#39;)<br>           wksht.row(0).write(1,&#39;x_min&#39;)<br>           wksht.row(0).write(2,&#39;y_min&#39;)<br>           wksht.row(0).write(3,&#39;x_max&#39;)<br>
           wksht.row(0).write(4,&#39;y_max&#39;)<br>           wksht.row(0).write(5,&#39;geometria&#39;)<br>           wksht.row(0).write(6,&#39;num_elem&#39;)<br>           wksht.row(0).write(7,&#39;prj&#39;)<br>           wksht.row(0).write(8,&#39;estrutura bd&#39;)<br>
           wksht.row(0).write(9,&#39;extent&#39;)<br>           wksht.row(0).write(10,&#39;fecha_modificacion&#39;)<br>           wksht.row(0).write(11,&#39;maquina_host&#39;)</p>
<p><br>           for row, filepath in enumerate(file_list, start=1): <br>               wksht.row(row).write(0, filepath)<br>          wrkbk.save(&#39;shp.xls&#39;)<br> </p>
<p>SEARCH_PATH = os.getcwd()<br>TARGET_FILE = os.path.realpath(&#39;shp.xls&#39;) <br>print &quot;Searching in&quot;, SEARCH_PATH, &quot;and writing to&quot;, TARGET_FILE<br>print &quot;Finding files...&quot;<br>print &quot;Writing Excel file...&quot;<br>
print &quot;Done.&quot;</p><br><br>
<div class="gmail_quote">2010/10/13 Susana Iraiis Delgado Rodriguez <span dir="ltr">&lt;<a href="mailto:susana.delgado_s@utzmg.edu.mx">susana.delgado_s@utzmg.edu.mx</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Hi Walter!</div>
<div> </div>
<div>I already looked at the code you suggested me to accomplish my goal, I made some changes on it to match mine, your code is very neat and nice. Here are some lines I changed:</div>
<ul>
<li>First I did the file search</li></ul>
<div>           file_list = []<br>           folders = None<br>           for root, folders, files in os.walk( &quot;C:\\&quot; ):<br>                file_list.extend(os.path.join(root,fi) for fi in files if fi.endswith(&quot;.shp&quot;))</div>

<ul>
<li>Then I create the excel, and asign the writing to the cells:</li></ul>
<p>           wksht = wrkbk.add_sheet(&#39;shp&#39;) <br>           wksht.row(0).write(0,&#39;archivo&#39;)<br>           wksht.row(0).write(1,&#39;x_min&#39;)<br>           wksht.row(0).write(2,&#39;y_min&#39;)<br>           wksht.row(0).write(3,&#39;x_max&#39;)<br>
           wksht.row(0).write(4,&#39;y_max&#39;)<br>           wksht.row(0).write(5,&#39;geometria&#39;)<br>           wksht.row(0).write(6,&#39;num_elem&#39;)<br>           wksht.row(0).write(7,&#39;prj&#39;)<br>           wksht.row(0).write(8,&#39;estrutura bd&#39;)<br>
           wksht.row(0).write(9,&#39;extent&#39;)<br>           wksht.row(0).write(10,&#39;fecha_modificacion&#39;)<br>           wksht.row(0).write(11,&#39;maquina_host&#39;)</p>
<p><br>           for row, filepath in enumerate(file_list, start=1): <br>               wksht.row(row).write(0, filepath)<br>          wrkbk.save(&#39;shp.xls&#39;)<br> </p>
<p>SEARCH_PATH = os.getcwd()<br>TARGET_FILE = os.path.realpath(&#39;shp.xls&#39;) <br>print &quot;Searching in&quot;, SEARCH_PATH, &quot;and writing to&quot;, TARGET_FILE<br>print &quot;Finding files...&quot;<br>print &quot;Writing Excel file...&quot;<br>
print &quot;Done.&quot;</p>
<div> </div>
<div class="gmail_quote">2010/10/12 Walter Prins <span dir="ltr">&lt;<a href="mailto:wprins@gmail.com" target="_blank">wprins@gmail.com</a>&gt;</span> 
<div class="im"><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi just a quick note -- I included my own recursive call in the code I posted last night which is obviously superflous as os.walk() already recurses by itself.  So if you looked at it already you may want to look at it again.<br>
<font color="#888888"><br>Walter<br><br></font></blockquote></div></div><br></blockquote></div><br>