<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7461899613955777598</id><updated>2024-09-14T05:58:53.333-07:00</updated><category term="Flex"/><category term=".Net"/><category term="ActionScript"/><category term="Adobe"/><category term="Archivos ocultos"/><category term="Bajar Archivo"/><category term="C#"/><category term="Descargar Directorio"/><category term="Eclipse"/><category term="Flash Builder"/><category term="Ftp Unix"/><category term="Plugin"/><category term="Subir Archivo"/><category term="Usb"/><category term="awt"/><category term="cambiar de directorio"/><category term="comando Unix"/><category term="comando para ver archivos"/><category term="directorio raiz"/><category term="excel"/><category term="exportar"/><category term="ftp"/><category term="graphics"/><category term="java"/><category term="msdos"/><category term="msxml"/><category term="office"/><category term="programación"/><category term="swing"/><category term="vbal"/><category term="ver archivos ocultos"/><category term="xml"/><title type='text'>Los Desarrolladores</title><subtitle type='html'>Somos un grupo de amigos dedicados al análisis y desarrollo de aplicaciones web en diferentes tecnologías (Flex, Java, .NET, AJAX, PHP, VBA, etc). La intención del blog es mostrar una forma sencilla de entender y resolver problemas con los que nos hemos enfrentado en nuestras actividades diarias.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://losdevelopers.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://losdevelopers.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Los desarrolladores</name><uri>http://www.blogger.com/profile/04752676860854007042</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='18' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyeWylgd63nNnYDzyyMJJsUQ2i9JGVgXnxO2XaT8Avkk2OTaq9OTuu_uEwUibfN8wrubI96LVORRz3Qg1J827WDcrFa8pQr67XBm1tCJeBB9ie_mfFGvH00nMK0sDmKg/s220/ld.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7461899613955777598.post-36237150526119119</id><published>2012-11-22T07:20:00.000-08:00</published><updated>2012-11-22T07:20:31.414-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="cambiar de directorio"/><category scheme="http://www.blogger.com/atom/ns#" term="comando Unix"/><category scheme="http://www.blogger.com/atom/ns#" term="directorio raiz"/><category scheme="http://www.blogger.com/atom/ns#" term="Ftp Unix"/><title type='text'>Ir al directorio raiz de un servidor ftp de unix, desde una aplicación web de .Net</title><content type='html'>&lt;p&gt;Para ir al direcctorio raiz de un servidor ftp de Unix desde un IIS se utliza 
  el comando &lt;strong&gt;%2f&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Ya que por default al autenticarse en el servidor ftp, este te posiciona en 
  una carpeta especifica por ejemplo:&lt;/p&gt;
&lt;p&gt;/home/usuario.&lt;/p&gt;
&lt;p&gt;Si nosotros queremos acceder desde nuestra aplicaci&amp;oacute;n web de .net a 
  un directorio como&lt;/p&gt;
&lt;p&gt;/documentos/archivos/ejemplo&lt;/p&gt;
&lt;p&gt;tendremos que escribir la direccion de la siguiente manera:&lt;/p&gt;
&lt;p&gt;ftp://IPClienteFTP/%&lt;strong&gt;2f&lt;/strong&gt;documentos/archivos/ejemplo.&lt;/p&gt;
&lt;p&gt;ya que si no escribimos el comando &lt;strong&gt;%2f&lt;/strong&gt;, el servidor ftp tomara 
  la ruta de la siguiente manera&lt;/p&gt;
&lt;p&gt;ftp://IPClienteFTP/&lt;strong&gt;home/usuario/&lt;/strong&gt;documentos/archivos/ejemplo.&lt;/p&gt;
&lt;p&gt;Con este estariamos intentar posicionarnos en un directorio que no existe.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://losdevelopers.blogspot.com/feeds/36237150526119119/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://losdevelopers.blogspot.com/2012/11/ir-al-directorio-raiz-de-un-servidor.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/36237150526119119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/36237150526119119'/><link rel='alternate' type='text/html' href='http://losdevelopers.blogspot.com/2012/11/ir-al-directorio-raiz-de-un-servidor.html' title='Ir al directorio raiz de un servidor ftp de unix, desde una aplicación web de .Net'/><author><name>dacruga</name><uri>http://www.blogger.com/profile/18324891380570038574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7461899613955777598.post-474324518941090868</id><published>2012-11-20T09:24:00.003-08:00</published><updated>2012-11-20T09:41:03.574-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Archivos ocultos"/><category scheme="http://www.blogger.com/atom/ns#" term="comando para ver archivos"/><category scheme="http://www.blogger.com/atom/ns#" term="Usb"/><category scheme="http://www.blogger.com/atom/ns#" term="ver archivos ocultos"/><title type='text'>Ver archivos oculto de usb</title><content type='html'>Debes entrar al menu incio de windows, buscas la aplicaci&amp;oacute;n cmd y presionas 
enter para ejecutarla.&lt;br&gt;
Al entrar escribes la letra con la cual windows registro tu memoria mas dos puntos 
(:)&lt;br&gt;
Ejemplo:&lt;br&gt;
En este caso la letra que corresponde a mi memoria es F.&lt;br&gt;
&lt;br&gt;
C:\Users\MiUsuario&amp;gt;F:&lt;br&gt;
presionas enter, quedando de la siguiente manera&lt;br&gt;
F:\&amp;gt;&lt;br&gt;
por ultimo escribes el siquiente comando presionas enter&lt;br&gt;
Attrib -s -r -h /s /dNota: debes ponerlo tal cual con espacios


&lt;a href=&quot;http://es.kioskea.net/forum/affich-24782-como-hacer-que-mis-archivos-ocultos-se-abran&quot;&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://losdevelopers.blogspot.com/feeds/474324518941090868/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://losdevelopers.blogspot.com/2012/11/ver-archivos-oculto-de-usb.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/474324518941090868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/474324518941090868'/><link rel='alternate' type='text/html' href='http://losdevelopers.blogspot.com/2012/11/ver-archivos-oculto-de-usb.html' title='Ver archivos oculto de usb'/><author><name>dacruga</name><uri>http://www.blogger.com/profile/18324891380570038574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7461899613955777598.post-403473337801945628</id><published>2011-07-14T12:37:00.000-07:00</published><updated>2011-07-14T15:10:18.188-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="awt"/><category scheme="http://www.blogger.com/atom/ns#" term="graphics"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="swing"/><title type='text'>[Java] Graficos con Swing Parte 1.</title><content type='html'>&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Inicialmente, empezamos a desarrollar utilizando solo la &#39;consola&#39;, con  el tipico &#39;hola mundo&#39;, y de esta forma realizamos pequeñas aplicaciones  destinadas a la lectura o escritura de archivos, calculos matematicos,  etc. Conforme vamos aprendiendo más, nos damos cuenta que tenemos muchos  mas recursos de donde tomar.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Es verdad que al&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;gunos se &#39;saltan&#39; el desarrollo de aplicaciones para  escritorio o el desarrollo de algún applet y se pasan directo al  desarrollo web, donde no ven nada de componentes graficos como tales,  propios de Java (botones, etiquetas, paneles, etc.).&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;font-size:85%;&quot;&gt;  &lt;span style=&quot;font-family:verdana;&quot;&gt; Java permite, además de sus controles, realizar dibujos directamente en  una &#39;Ventana&#39; o algún Panel. Para con ésto realizar aplicaciones  especializadas para mostrar Graficos, crear animaciones o desarrollar  juegos.&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;font-size:85%;&quot;&gt;  &lt;span style=&quot;font-family:verdana;&quot;&gt; En esta entrada veremos el componente principal de una Aplicacion de  escritorio y como dibujar y mostrar elementos gráficos directamente en  el (o con ayuda de algun otro componente contenido en la ventana).&lt;br /&gt;Tomar en cuenta que &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;el objetivo de esto no es especializarse en &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:85%;&quot; &gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Swing o &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;la clase Graphics, ya que No se explica a detalle.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;Pasemos al planteamiento: &lt;span style=&quot;font-style: italic;&quot;&gt;Se ha de desarollar una pequeña aplicacion que permita visualizar formas basicas en una ventana&lt;/span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt; &lt;span style=&quot;font-family:verdana;&quot;&gt;Para esto, como elemento principal necesitamos crear un Contenedor, el cual permitirá mostrar el contenido que necesitemos, para esto utilizaremos el componente llamado &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-family:verdana;&quot; &gt;JFrame&lt;/span&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Aunque se puede dibujar directamente en un JFrame, utilizaremos un &lt;/span&gt;&lt;span style=&quot; font-weight: bold;font-family:verdana;&quot; &gt;JPanel &lt;/span&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;para este trabajo.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ambos componentes tienen un método llamado&lt;span style=&quot;font-family:courier new;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;paint(Graphics g)&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;,&lt;/span&gt; que es el encargado del renderizado de dicho componente.  &lt;span style=&quot;font-family:verdana;&quot;&gt;La estructura basica de nuestra clase sería la siguiente:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre  style=&quot;background:#ffffff;color:#000000;&quot;&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;import&lt;/span&gt; java&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;awt&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;Color&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;import&lt;/span&gt; java&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;awt&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;Graphics&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;import&lt;/span&gt; javax&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;swing&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;*&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;public class PanelGrafico extends JPanel &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;  &lt;br /&gt;   public PanelGrafico&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt; &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;    &lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;  &lt;br /&gt;   public &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;void&lt;/span&gt; paint&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;Graphics g&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt; &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;       g&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;drawRect&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;20&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; &lt;span style=&quot; ;color:#008c00;&quot; &gt;20&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; &lt;span style=&quot; ;color:#008c00;&quot; &gt;200&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; &lt;span style=&quot; ;color:#008c00;&quot; &gt;200&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;  &lt;br /&gt;   public &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;static&lt;/span&gt; &lt;span style=&quot;color:#800000; font-weight:bold; &quot;&gt;void&lt;/span&gt; &lt;span style=&quot; ;color:#400000;&quot; &gt;main&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#603000;&quot; &gt;String&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;[&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;]&lt;/span&gt; args&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt; &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;      &lt;br /&gt;       PanelGrafico2 panel &lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt; new PanelGrafico2&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;       JFrame ventana &lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt; new JFrame&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;       ventana&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;add&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;panel&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;       ventana&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;setSize&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;400&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;400&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;       ventana&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;setDefaultCloseOperation&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;JFrame&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;EXIT_ON_CLOSE&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;       ventana&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;setVisible&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;true&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;  &lt;br /&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Ejecutando el codigo anterior obtenemos lo siguiente:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;div style=&quot;text-align: center;&quot; id=&quot;thumbnails&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLGVLLJLgj3dmHWXqzCBn6LLcRQ6chyJaEzofPYZegIFe3vR_nKmzweWx7kZX0PBrg4hZ1yFygyOg-Efw35xaeAUCa9PJZ5WW4GacHKvV3fJG46-B-5d5KTKe-BrsRDyqeDY1q9mGX2sGV/s1600/cuadro1.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 320px; height: 319px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLGVLLJLgj3dmHWXqzCBn6LLcRQ6chyJaEzofPYZegIFe3vR_nKmzweWx7kZX0PBrg4hZ1yFygyOg-Efw35xaeAUCa9PJZ5WW4GacHKvV3fJG46-B-5d5KTKe-BrsRDyqeDY1q9mGX2sGV/s320/cuadro1.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5629295734635754834&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;br /&gt;No&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;s enfocaremos principalmente en el método &lt;span style=&quot;font-weight: bold;&quot;&gt;paint()&lt;/span&gt;.&lt;/span&gt;  &lt;span style=&quot;font-family:verdana;&quot;&gt;Éste método es el encargado de dibujar en el componente, lleva como parámetro el objeto Graphics, que es el que nos proporciona los elementos graficos que pueden ser dibujados, incluyendo metodos para formas basicas como lineas o circulos, así como también texto.&lt;/span&gt;  &lt;span style=&quot;font-family:verdana;&quot;&gt;Algunos métodos son los siguientes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;g.drawLine(x1, y1, x2, y2);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;g.drawRect(x, y, ancho, alto);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;g.drawOval(x, y, ancho, alto);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;g.drawString(&quot;texto&quot;, x, y);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Las variables &lt;span style=&quot; font-weight: bold;font-family:courier new;&quot; &gt;x, y&lt;/span&gt; representan las coordenadas (numero entero) en &quot;pixeles&quot; dentro del contenedor.&lt;/span&gt; &lt;span style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;Las variables &lt;span style=&quot;font-weight: bold;&quot;&gt;ancho &lt;/span&gt;&lt;/span&gt;y &lt;span style=&quot;font-family:courier new;&quot;&gt;alto &lt;/span&gt;también son valores enteros.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt; &lt;span style=&quot;font-family:verdana;&quot;&gt;Como practica no hace falta mas que experimentar con dichos métodos (así como los demás pertenecientes a la clase Graphics).&lt;/span&gt;  &lt;span style=&quot;font-family:verdana;&quot;&gt;Podemos agregar este codigo al método paint(), el cual dibujará una fila de pequeños circulos a lo ancho de la ventana:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre  style=&quot;background:#ffffff;color:#000000;&quot;&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;for&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;int&lt;/span&gt; cont&lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;0&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt; cont&lt;span style=&quot; ;color:#808030;&quot; &gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;this&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;getWidth&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;/&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;10&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt; cont&lt;span style=&quot; ;color:#808030;&quot; &gt;+&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;+&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt; &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;g&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;fillOval&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;cont&lt;span style=&quot; ;color:#808030;&quot; &gt;*&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;10&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; &lt;span style=&quot; ;color:#008c00;&quot; &gt;10&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; &lt;span style=&quot; ;color:#008c00;&quot; &gt;10&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; &lt;span style=&quot; ;color:#008c00;&quot; &gt;10&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;br /&gt;Lo siguiente dibujará una &#39;rejilla&#39; a lo ancho y largo de la ventana:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre  style=&quot;background:#ffffff;color:#000000;&quot;&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;for&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;int&lt;/span&gt; cont&lt;span style=&quot; ;color:#808030;&quot; &gt;=&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;0&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt; cont&lt;span style=&quot; ;color:#808030;&quot; &gt;&amp;lt;&lt;/span&gt;getWidth&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;/&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;20&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt; cont&lt;span style=&quot; ;color:#808030;&quot; &gt;+&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;+&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt; &lt;span style=&quot; ;color:#800080;&quot; &gt;{&lt;/span&gt;&lt;br /&gt;g&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;drawLine&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;cont&lt;span style=&quot; ;color:#808030;&quot; &gt;*&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;20&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; &lt;span style=&quot; ;color:#008c00;&quot; &gt;0&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; cont&lt;span style=&quot; ;color:#808030;&quot; &gt;*&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;20&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;this&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;getHeight&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;g&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;drawLine&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;0&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; cont&lt;span style=&quot; ;color:#808030;&quot; &gt;*&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;20&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt; &lt;span style=&quot; font-weight:bold; color:#800000;&quot; &gt;this&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;.&lt;/span&gt;getWidth&lt;span style=&quot; ;color:#808030;&quot; &gt;(&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;,&lt;/span&gt;cont&lt;span style=&quot; ;color:#808030;&quot; &gt;*&lt;/span&gt;&lt;span style=&quot; ;color:#008c00;&quot; &gt;20&lt;/span&gt;&lt;span style=&quot; ;color:#808030;&quot; &gt;)&lt;/span&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot; ;color:#800080;&quot; &gt;}&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Puede agregarce color a las formas, utilizando el siguiente codigo:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt; &lt;span style=&quot;font-family:courier new;&quot;&gt;g.setColor(Color.blue);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Agregando los ultimos fragmentos de codigo al metodo paint() y ejecutandolo, se obtiene lo siguiente:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBenJvZVpBLMLN0kHuPxJONfrCOwIifblUxyhaIIBL73qUzbV0GCtKgiCtkRUXLoiJasgV9_YI_I_BCjWaLwNoaa9AkLld_B-HBc6YbKdBHprWBiJskeXDojPtLV6SJDHsS_w_v6GgK6CS/s1600/cuadro2.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 320px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBenJvZVpBLMLN0kHuPxJONfrCOwIifblUxyhaIIBL73qUzbV0GCtKgiCtkRUXLoiJasgV9_YI_I_BCjWaLwNoaa9AkLld_B-HBc6YbKdBHprWBiJskeXDojPtLV6SJDHsS_w_v6GgK6CS/s320/cuadro2.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5629322605741753634&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;font-size:85%;&quot;&gt;&lt;br /&gt;Practicar y experimentar es la mejor manera de entender mejor la clase Graphics.&lt;br /&gt;&lt;br /&gt;Un ejemplo:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDds0FXujBgK9dx-1hDAMbgbPaykH_1HtyXUv6b4pwGZTramjXX4osERnmHYnqG29B69GOCXR4Le45xgeHLCGWxmcd5X3IW6ACo-u6eyCzby8NEqQO-_OTSTiJ84rP5TvHuJWgf2DY_p_X/s1600/cuadro3.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 200px; height: 190px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDds0FXujBgK9dx-1hDAMbgbPaykH_1HtyXUv6b4pwGZTramjXX4osERnmHYnqG29B69GOCXR4Le45xgeHLCGWxmcd5X3IW6ACo-u6eyCzby8NEqQO-_OTSTiJ84rP5TvHuJWgf2DY_p_X/s200/cuadro3.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5629325162281398514&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-family:courier new;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Pero para realizar animaciones, o algun pequeño juego, o cualquier elemento que se &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-family:verdana;&quot; &gt;&#39;moverá&lt;/span&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;&#39; dentro de la ventana, lo anterior &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-family:verdana;&quot; &gt;no&lt;/span&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt; es suficiente (o no es recomendado), ya que al momento de refrescar la pantalla ciclicamente, se nota un efecto de &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-family:verdana;&quot; &gt;&#39;parpadeo&#39; &lt;/span&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;y por lo cual, no es posible visualizar comodamente los elementos.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Para solucion a este problema hay una tecnica conocida como &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-family:verdana;&quot; &gt;Doble Buffer&lt;/span&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;, la cual se describirá en la Parte 2 de éste tutorial.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Saludos!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://losdevelopers.blogspot.com/feeds/403473337801945628/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://losdevelopers.blogspot.com/2011/07/java-graficos-con-swing-parte-1.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/403473337801945628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/403473337801945628'/><link rel='alternate' type='text/html' href='http://losdevelopers.blogspot.com/2011/07/java-graficos-con-swing-parte-1.html' title='[Java] Graficos con Swing Parte 1.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02890487100638247206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLGVLLJLgj3dmHWXqzCBn6LLcRQ6chyJaEzofPYZegIFe3vR_nKmzweWx7kZX0PBrg4hZ1yFygyOg-Efw35xaeAUCa9PJZ5WW4GacHKvV3fJG46-B-5d5KTKe-BrsRDyqeDY1q9mGX2sGV/s72-c/cuadro1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7461899613955777598.post-8251876880465293962</id><published>2011-07-14T11:52:00.001-07:00</published><updated>2011-07-14T14:18:09.324-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Adobe"/><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash Builder"/><category scheme="http://www.blogger.com/atom/ns#" term="Flex"/><category scheme="http://www.blogger.com/atom/ns#" term="Plugin"/><title type='text'>[Flex] Instalar Flash Builder 4.5 como Plugin en Eclipse.</title><content type='html'>Si quieres tener Flash Builder 4.5 como Plugin en Eclipse es muy sencillo. Sólo tienes que hacer lo siguiente:&lt;br /&gt;&lt;br /&gt;&lt;div&gt;1. Instala Flash Builder 4.5 (Standalone). Puedes bajar la versión de prueba de la página de Adobe.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;2. Debes tener una versión de Eclipse 3.6 ó superior. La última versión es Eclipse Indigo.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;3. Comprueba que en el directorio de eclipse existe el folder dropins.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;4. Navega hasta el directorio de instalación de Flash Builder y abre la carpeta utilities (ejemplo: C:\Archivos de programa\Adobe\Adobe Flash Builder 4.5\utilities).&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;5. Ejecuta la utilería Adobe Flash Builder 4.5 Plug-in Utility.exe.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 129px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5629295810510302210&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZxDVK6wkgVG1DriZ_u-BwUoD8CtJD4uPjdaAiCEXU6wZzS6Nfel8awm7uvKnbfaVdUjP8wf-TqY0GGWehZcJolXYqwOjrCdUV4BzN9G1f1T5_iiG8DKvO3fqQZ4kz7GBXOkx5jtNAGx8/s320/utilities.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;6. Selecciona el lenguaje deseado (Inglés, Alemán o Frances, no sé ninguno de estos idiomas pero tuve que elegir uno).&lt;/div&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 243px; DISPLAY: block; HEIGHT: 151px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5629296158981350770&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrCyRKXVMbvqSbFb24PbpXNoVwHly0okeVQYZA4GgC7ulrvtLH374WoaC9MFZITEdBKOe0DbIB6dSTCbUhh1b_uSoCjwlCczDOv3tKt89ww_3XE1y8lnz37pC-hWKogbqCmAChDZvrKWw/s320/idioma.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;7. Probablemente tengas que proporcionar la ruta de instalación de Flash Builder. Si no te pide esta ruta, salta al siguiente paso (a mí no me apareció este paso).&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;8. Proporciona el directorio de eclipse (en mi caso D:\eclipse).&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 211px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5629296802060924642&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_sjwBfxjoYoiz6S_J-iy2uC73qd360KA8M7w4_tELg2Rc9dYXRWG83uiTIo3nldryqONvBN-l9hoaMJTksc6zqLTS85hB1YOdiNHIo7tG6EJqWnoKV1tyYqkk_9O0CCtNMe2p_CE1FFc/s320/rutaEclipse.png&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;9. Revisa el resumen de instalación y click en Install.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 211px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5629297000991610354&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilNK9b4V2hm2RU4ncYAWuSvU6ZEMHpRsnD-WIxmtWnqMThS8FvW7nWcRw9ZiHmZHQtDS7N8Bbv1xzMWImywNa7xMSgIV6Zc6DKtKDP5onXxjULfR5z3n9sBV_SUpdoYTC_zNLGtwNzCFA/s320/resumenInstalacion.png&quot; /&gt;&lt;br /&gt;10. Posterior a la instalación es muy recomendado que edites el archivo eclipse.ini de tu instancia de eclipse (en mi caso D:\eclipse\eclipse.ini) y agregues las siguientes líneas:&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;-vmargs&lt;/div&gt;&lt;br /&gt;&lt;div&gt;-Xms256m&lt;/div&gt;&lt;br /&gt;&lt;div&gt;-Xmx512m&lt;/div&gt;&lt;br /&gt;&lt;div&gt;-XX:MaxPermSize=256m&lt;/div&gt;&lt;br /&gt;&lt;div&gt;-XX:PermSize=64m&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 317px; DISPLAY: block; HEIGHT: 176px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5629297323182448738&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv1MDkvVbi7PvpOd04VtjpLbMmTEIEM0B67aUZdXO3tRxpJEDjlEwCIMNT8WAm1vrtEeojQRt4rxsi1w_vuOLlw8nnyn-ezBD2CblDA3gGuJD0NVcMoM0Zbvr9OgSYngBbCHjkWVDgQlw/s320/eclipseini.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;Y listo!! Abre Eclipse para crear un proyecto Flex.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Si tienes dudas con alguno de los pasos, deja tu comentario.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://losdevelopers.blogspot.com/feeds/8251876880465293962/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://losdevelopers.blogspot.com/2011/07/instalar-flash-builder-45-como-plugin.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/8251876880465293962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/8251876880465293962'/><link rel='alternate' type='text/html' href='http://losdevelopers.blogspot.com/2011/07/instalar-flash-builder-45-como-plugin.html' title='[Flex] Instalar Flash Builder 4.5 como Plugin en Eclipse.'/><author><name>Magg</name><uri>http://www.blogger.com/profile/03557185933890345260</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZxDVK6wkgVG1DriZ_u-BwUoD8CtJD4uPjdaAiCEXU6wZzS6Nfel8awm7uvKnbfaVdUjP8wf-TqY0GGWehZcJolXYqwOjrCdUV4BzN9G1f1T5_iiG8DKvO3fqQZ4kz7GBXOkx5jtNAGx8/s72-c/utilities.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7461899613955777598.post-8090765758966208676</id><published>2011-07-14T07:51:00.000-07:00</published><updated>2011-07-14T14:08:52.057-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript"/><category scheme="http://www.blogger.com/atom/ns#" term="Flex"/><title type='text'>[Flex] Como crear una gráfica de valores acumulados</title><content type='html'>En cierta ocasión me pidieron que hiciera una gráfica que mostrara el avance acumulado por meses pero que la comumna siguiente se dibujara a partir del valor maximo de la barra anterior y lo que se me ocurrió lo dejo en el siguiente link:&lt;br /&gt;
&lt;a href=&quot;http://mybinnacle.blogspot.com/&quot;&gt;http://mybinnacle.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Espero sea de utilidad.</content><link rel='replies' type='application/atom+xml' href='http://losdevelopers.blogspot.com/feeds/8090765758966208676/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://losdevelopers.blogspot.com/2011/07/como-crear-una-grafica-de-valores.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/8090765758966208676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/8090765758966208676'/><link rel='alternate' type='text/html' href='http://losdevelopers.blogspot.com/2011/07/como-crear-una-grafica-de-valores.html' title='[Flex] Como crear una gráfica de valores acumulados'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7461899613955777598.post-239380938918615870</id><published>2011-07-13T19:25:00.000-07:00</published><updated>2011-07-29T13:08:20.363-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="exportar"/><category scheme="http://www.blogger.com/atom/ns#" term="msxml"/><category scheme="http://www.blogger.com/atom/ns#" term="office"/><category scheme="http://www.blogger.com/atom/ns#" term="programación"/><category scheme="http://www.blogger.com/atom/ns#" term="vbal"/><category scheme="http://www.blogger.com/atom/ns#" term="xml"/><title type='text'>[VBA] Serie MSXML - Creando un documento XML en Excel</title><content type='html'>A veces&amp;nbsp;resulta muy&amp;nbsp;necesario importar información de un archivo de excel, y uno de los formatos mas ampliamente usados por su interoperabilidad es el XML.&lt;br /&gt;
Esta es la hoja de excel que convertiremos a XML.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEcY_CMP4BoA0NTxlncOxRW4EBDUEqpL47CC81uuYDMaDgt4iw1XNmVsAVI-ZyTFERyTNGz5LCBKrh73ZutHI94iA8VixWxYhr01TLAbhznk79an_YUrky02wfkeWGzWtErWkrlS_vAWg/s1600/excel2xml00.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEcY_CMP4BoA0NTxlncOxRW4EBDUEqpL47CC81uuYDMaDgt4iw1XNmVsAVI-ZyTFERyTNGz5LCBKrh73ZutHI94iA8VixWxYhr01TLAbhznk79an_YUrky02wfkeWGzWtErWkrlS_vAWg/s320/excel2xml00.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;Para lograr esto, tendremos que agregar las referencia Microsoft XML 5.0 (msxml.dll),&amp;nbsp;tienes que&amp;nbsp;ir a Herramientas/Referencias y elige esta versión o la más actual que tengas instalada.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDkmpYpejQ6I_qBXKg24waEWAovu59f-eJMnMEV_C6ZISy9YLNLeZGEhr9oA_t6U9q3MlRdVT6Zwqni8OASz0JKeGGtYz_OcN5P2erLbb92U4W5rr7URKKtnn-1OUL8KWMCQHrppmDsQM/s1600/excel2xml01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDkmpYpejQ6I_qBXKg24waEWAovu59f-eJMnMEV_C6ZISy9YLNLeZGEhr9oA_t6U9q3MlRdVT6Zwqni8OASz0JKeGGtYz_OcN5P2erLbb92U4W5rr7URKKtnn-1OUL8KWMCQHrppmDsQM/s320/excel2xml01.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9hpqZT9SK7M7y_Qe9V_ADSS_-4s1NpcbiL49kiLQL_Bzm3adzU-TY__fgyX-9T96dY4vKbHqrwc_SvF5idrA8sAOvZk0WQg0NKqXS_McE28R9AyAi-g2lrgDEYeObewyJM3xnWh-0nGk/s1600/excel2xml02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9hpqZT9SK7M7y_Qe9V_ADSS_-4s1NpcbiL49kiLQL_Bzm3adzU-TY__fgyX-9T96dY4vKbHqrwc_SvF5idrA8sAOvZk0WQg0NKqXS_McE28R9AyAi-g2lrgDEYeObewyJM3xnWh-0nGk/s320/excel2xml02.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaAB7tATGSbBDFlz9yKVxFgyY9ugwNftWLGYbH86heEwNWImMs1IhJawahvVDKEwK8DgS_SHFlCUL5Eg3VxKZqGFndKU6_oHvOqfu36k7V8PaNpOmSpa7FvKKOgKffK1Wd47kPNtIKMuw/s1600/excel2xml03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaAB7tATGSbBDFlz9yKVxFgyY9ugwNftWLGYbH86heEwNWImMs1IhJawahvVDKEwK8DgS_SHFlCUL5Eg3VxKZqGFndKU6_oHvOqfu36k7V8PaNpOmSpa7FvKKOgKffK1Wd47kPNtIKMuw/s320/excel2xml03.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;Código VBA:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: rgb(255, 255, 255); color: black;&quot;&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Sub&lt;/span&gt; ConvetirAXml&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;

&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Dim&lt;/span&gt; fila &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Integer&lt;/span&gt;

&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Dim&lt;/span&gt; documento &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;As&lt;/span&gt; DOMDocument
&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Dim&lt;/span&gt; registros &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;As&lt;/span&gt; IXMLDOMElement
&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Dim&lt;/span&gt; registro &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;As&lt;/span&gt; IXMLDOMElement
&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Dim&lt;/span&gt; atributo &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;As&lt;/span&gt; IXMLDOMAttribute
&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Dim&lt;/span&gt; columna &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;As&lt;/span&gt; IXMLDOMElement
&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Dim&lt;/span&gt; encoding &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;As&lt;/span&gt; IXMLDOMProcessingInstruction

fila &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008c00;&quot;&gt;2&lt;/span&gt;

&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Set&lt;/span&gt; documento &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;New&lt;/span&gt; DOMDocument

&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Set&lt;/span&gt; encoding &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; documento&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;createProcessingInstruction&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;xml&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;version=&#39;1.0&#39; encoding=&#39;iso-8859-1&#39;&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
documento&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;appendChild encoding

&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Set&lt;/span&gt; registros &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; documento&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;createElement&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;registros&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
documento&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;appendChild registros

&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Do&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;While&lt;/span&gt; datos&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;Cells&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;fila&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;B&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;&quot;&lt;/span&gt;

    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Set&lt;/span&gt; registro &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; documento&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;createElement&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;registro&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
    registros&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;appendChild registro
    
    &lt;span style=&quot;color: dimgrey;&quot;&gt;&#39;COLUMNA ID&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Set&lt;/span&gt; columna &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; documento&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;createElement&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;datos&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;Cells&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008c00;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;A&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
    registro&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;appendChild columna
    columna&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;Text &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; datos&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;Cells&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;fila&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;A&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
    
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Set&lt;/span&gt; atributo &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; documento&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;createAttribute&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;id&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
    atributo&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;NodeValue &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; fila
    registro&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;setAttributeNode atributo
        
    &lt;span style=&quot;color: dimgrey;&quot;&gt;&#39;COLUMNA DATO&lt;/span&gt;
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Set&lt;/span&gt; columna &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; documento&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;createElement&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;datos&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;Cells&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #008c00;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;B&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
    registro&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;appendChild columna
    columna&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;Text &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; datos&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;Cells&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;fila&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;B&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
    
    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Set&lt;/span&gt; atributo &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; documento&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;createAttribute&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;id&quot;&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;
    atributo&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;NodeValue &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; fila
    registro&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;setAttributeNode atributo
        

fila &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; fila &lt;span style=&quot;color: #808030;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #008c00;&quot;&gt;1&lt;/span&gt;

&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Loop&lt;/span&gt;

documento&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;Save ThisWorkbook&lt;span style=&quot;color: #008c00;&quot;&gt;.&lt;/span&gt;Path &lt;span style=&quot;color: #808030;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;\datos.xml&quot;&lt;/span&gt;

&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;Sub&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
Archivo XML Generado:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: rgb(255, 255, 255); color: black;&quot;&gt;&lt;span style=&quot;color: #004a43;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: #004a43;&quot;&gt;xml&lt;/span&gt; &lt;span style=&quot;color: #004a43;&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #008c00;&quot;&gt;&quot;1.0&quot;&lt;/span&gt; &lt;span style=&quot;color: #004a43;&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;iso-8859-1&quot;&lt;/span&gt;&lt;span style=&quot;color: #004a43;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;registros&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;registro&lt;/span&gt; &lt;span style=&quot;color: #274796;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;1&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;DATO&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;A&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;DATO&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;registro&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;registro&lt;/span&gt; &lt;span style=&quot;color: #274796;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;2&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;DATO&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;B&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;DATO&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;registro&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;registro&lt;/span&gt; &lt;span style=&quot;color: #274796;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;3&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;DATO&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;C&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;DATO&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;registro&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;registro&lt;/span&gt; &lt;span style=&quot;color: #274796;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;4&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;DATO&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;D&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;DATO&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;registro&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;registro&lt;/span&gt; &lt;span style=&quot;color: #274796;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #0000e6;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;5&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;DATO&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;E&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;DATO&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;registro&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #5f5035;&quot;&gt;registros&lt;/span&gt;&lt;span style=&quot;color: #a65700;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;a href=&quot;http://dl.dropbox.com/u/35255323/ConvertirAXml.xls&quot;&gt;Descargar ejemplo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Descarga el archivo de excel posicionate sobre la hoja que se llama DATOS y presiona F9, en la misma ubicación donde descargaste o colocaste el archivo, si tienes algun problema para ejecutarlo puede deberse a que tendras que habilitar el uso de macros y activeX en excel. Como buena práctica les recomiendo ir guardando y organizando&amp;nbsp;los códigos que vamos haciendo en nuestro día a día, les sugiero un muy buen code snippets manager que&amp;nbsp;se llama &lt;a href=&quot;http://www.snipitpro.com/&quot;&gt;SnipItPro&lt;/a&gt;.&amp;nbsp;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://losdevelopers.blogspot.com/feeds/239380938918615870/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://losdevelopers.blogspot.com/2011/07/creando-un-documento-xml-en-excel.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/239380938918615870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/239380938918615870'/><link rel='alternate' type='text/html' href='http://losdevelopers.blogspot.com/2011/07/creando-un-documento-xml-en-excel.html' title='[VBA] Serie MSXML - Creando un documento XML en Excel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEcY_CMP4BoA0NTxlncOxRW4EBDUEqpL47CC81uuYDMaDgt4iw1XNmVsAVI-ZyTFERyTNGz5LCBKrh73ZutHI94iA8VixWxYhr01TLAbhznk79an_YUrky02wfkeWGzWtErWkrlS_vAWg/s72-c/excel2xml00.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7461899613955777598.post-2797144843093502260</id><published>2011-07-13T11:02:00.000-07:00</published><updated>2011-09-02T09:03:46.834-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bajar Archivo"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Descargar Directorio"/><category scheme="http://www.blogger.com/atom/ns#" term="ftp"/><category scheme="http://www.blogger.com/atom/ns#" term="Subir Archivo"/><title type='text'>Cliente ftp con CSharp</title><content type='html'>//Aqui les dejo una clase completa para el manejo de archivos por FTP con CSharp&lt;br /&gt;//Framework 2.0&lt;br /&gt;//&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;using Microsoft.CSharp;&lt;br /&gt;using System.Net;&lt;br /&gt;using System.IO;&lt;br /&gt;using System.Threading;&lt;br /&gt;using System.Configuration;&lt;br /&gt;using System;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class FTP&lt;br /&gt;{&lt;br /&gt;    public string host, user, pass;&lt;br /&gt;&lt;br /&gt;    public FTP(string host,string user,string pass)&lt;br /&gt;	{&lt;br /&gt;        this.host = host;&lt;br /&gt;        this.user = user;&lt;br /&gt;        this.pass = pass;&lt;br /&gt;       &lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    public string eliminarFichero(string fichero)&lt;br /&gt;    {&lt;br /&gt;        FtpWebRequest peticionFTP;&lt;br /&gt;          // Creamos una petición FTP con la dirección del fichero a eliminar&lt;br /&gt;        peticionFTP = (FtpWebRequest)WebRequest.Create(new System.Uri(fichero));&lt;br /&gt;&lt;br /&gt;             // Fijamos el usuario y la contraseña de la petición&lt;br /&gt;      &lt;br /&gt;       peticionFTP.Credentials = new NetworkCredential (user,pass);&lt;br /&gt;       //      &#39; Seleccionamos el comando que vamos a utilizar: Eliminar un fichero&lt;br /&gt;           peticionFTP.Method = WebRequestMethods.Ftp.DeleteFile;&lt;br /&gt;           peticionFTP.UsePassive = false;&lt;br /&gt;           try&lt;br /&gt;           {&lt;br /&gt;                &lt;br /&gt;              FtpWebResponse  respuestaFTP;&lt;br /&gt;              respuestaFTP = (FtpWebResponse)peticionFTP.GetResponse();&lt;br /&gt;              respuestaFTP.Close();&lt;br /&gt;&lt;br /&gt;              return string.Empty;&lt;br /&gt;            }&lt;br /&gt;        catch (Exception ex)&lt;br /&gt;           {&lt;br /&gt;               return ex.Message;  &lt;br /&gt;            }  &lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    public Boolean existeObjeto(ref String dir)&lt;br /&gt;    {&lt;br /&gt;        FtpWebRequest peticionFTP;&lt;br /&gt;        //Creamos una peticion FTP con la dirección del objeto que queremos saber si existe&lt;br /&gt;        peticionFTP = (FtpWebRequest)WebRequest.Create(new Uri(dir));&lt;br /&gt;        //Fijamos el usuario y la contraseña de la petición&lt;br /&gt;        peticionFTP.Credentials = new NetworkCredential(user, pass);&lt;br /&gt;        //Para saber si el objeto existe, solicitamos la fecha de creación del mismo&lt;br /&gt;        peticionFTP.Method =WebRequestMethods.Ftp.GetDateTimestamp ;&lt;br /&gt;        peticionFTP.UsePassive =false;&lt;br /&gt;        peticionFTP.KeepAlive = true;&lt;br /&gt;        try&lt;br /&gt;        {&lt;br /&gt;            //si el objeto existe, se devolvera true&lt;br /&gt;            FtpWebResponse  respuestaFTP;&lt;br /&gt;            //respuestaFTP = CType(peticionFTP.GetResponse(), FtpWebResponse)&lt;br /&gt;            respuestaFTP = (FtpWebResponse)peticionFTP.GetResponse();&lt;br /&gt;           &lt;br /&gt;            return true;&lt;br /&gt;        }&lt;br /&gt;        catch (Exception ex)&lt;br /&gt;        {&lt;br /&gt;            //si el objeto no existe, se producirá un error y al entrar por el Catch&lt;br /&gt;            //se devolvera falso&lt;br /&gt;            return false;&lt;br /&gt;        }&lt;br /&gt;       &lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;      public String creaDirectorio(String dir)&lt;br /&gt;      {&lt;br /&gt;     &lt;br /&gt;              FtpWebRequest peticionFTP;&lt;br /&gt;&lt;br /&gt;            // Creamos una peticion FTP con la dirección del directorio que queremos crear&lt;br /&gt;            peticionFTP =  (FtpWebRequest) WebRequest.Create(new Uri(dir));&lt;br /&gt;            peticionFTP.KeepAlive = true;&lt;br /&gt;&lt;br /&gt;            // Fijamos el usuario y la contraseña de la petición&lt;br /&gt;            peticionFTP.Credentials = new NetworkCredential(user, pass);&lt;br /&gt;&lt;br /&gt;            // Seleccionamos el comando que vamos a utilizar: Crear un directorio&lt;br /&gt;            peticionFTP.Method = WebRequestMethods.Ftp.MakeDirectory;&lt;br /&gt;            //(FtpWebResponse) request.GetResponse();&lt;br /&gt;&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                FtpWebResponse  respuesta;&lt;br /&gt;                respuesta = (FtpWebResponse) peticionFTP.GetResponse();&lt;br /&gt;                respuesta.Close();&lt;br /&gt;                // Si todo ha ido bien, se devolverá String.Empty&lt;br /&gt;                return string.Empty;&lt;br /&gt;                 &lt;br /&gt;            }&lt;br /&gt;            catch  (Exception ex)&lt;br /&gt;            { &lt;br /&gt;                // Si se produce algún fallo, se devolverá el mensaje del error&lt;br /&gt;                return ex.Message;&lt;br /&gt;            }&lt;br /&gt;          &lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;      public  String subirFichero(String fichero,   String destino,  String dir )          &lt;br /&gt;      {&lt;br /&gt;     &lt;br /&gt;            FileInfo  infoFichero = new FileInfo(fichero);&lt;br /&gt;&lt;br /&gt;            String  uri;&lt;br /&gt;            uri = destino;&lt;br /&gt;&lt;br /&gt;            // Si no existe el directorio, lo creamos&lt;br /&gt;           String  str=&quot;&quot;;&lt;br /&gt;           if (!existeObjeto(ref dir)) str = creaDirectorio(dir);&lt;br /&gt;&lt;br /&gt;           FtpWebRequest peticionFTP;&lt;br /&gt;&lt;br /&gt;            // Creamos una peticion FTP con la dirección del fichero que vamos a subir&lt;br /&gt;            peticionFTP =   (FtpWebRequest) FtpWebRequest.Create(new  Uri(destino));&lt;br /&gt;&lt;br /&gt;            // Fijamos el usuario y la contraseña de la petición&lt;br /&gt;            peticionFTP.Credentials = new NetworkCredential(user, pass);&lt;br /&gt;&lt;br /&gt;            peticionFTP.KeepAlive = false;&lt;br /&gt;            peticionFTP.UsePassive = false;&lt;br /&gt;            // Seleccionamos el comando que vamos a utilizar: Subir un fichero&lt;br /&gt;            peticionFTP.Method = WebRequestMethods.Ftp.UploadFile;&lt;br /&gt;&lt;br /&gt;            // Especificamos el tipo de transferencia de datos&lt;br /&gt;            peticionFTP.UseBinary = true;&lt;br /&gt;&lt;br /&gt;            // Informamos al servidor sobre el tamaño del fichero que vamos a subir&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                peticionFTP.ContentLength = infoFichero.Length;&lt;br /&gt;            }&lt;br /&gt;               &lt;br /&gt;            catch   (Exception ex)&lt;br /&gt;            {return ex.Message;}&lt;br /&gt;&lt;br /&gt;            // Fijamos un buffer de 2KB&lt;br /&gt;            int longitudBuffer;&lt;br /&gt;            longitudBuffer = 2048;&lt;br /&gt;            Byte[] lector = new Byte[2048] ; // esti estaba Byte (2048);&lt;br /&gt;            int num;&lt;br /&gt;&lt;br /&gt;            // Abrimos el fichero para subirlo&lt;br /&gt;            FileStream fs;&lt;br /&gt;            fs = infoFichero.OpenRead();&lt;br /&gt;            Stream  escritor = null;&lt;br /&gt;            try&lt;br /&gt;            {  escritor = peticionFTP.GetRequestStream();&lt;br /&gt;              // Leemos 2 KB del fichero en cada iteración&lt;br /&gt;                num = fs.Read(lector, 0, longitudBuffer);&lt;br /&gt;               // num=fs.Read (lector[],0,longitudBuffer);&lt;br /&gt;                while (num != 0)&lt;br /&gt;                {&lt;br /&gt;                    // Escribimos el contenido del flujo de lectura en el&lt;br /&gt;                    // flujo de escritura del comando FTP&lt;br /&gt;                    escritor.Write(lector, 0, num);&lt;br /&gt;                    num = fs.Read(lector, 0, longitudBuffer);&lt;br /&gt;                }&lt;br /&gt;&lt;br /&gt;                escritor.Close();&lt;br /&gt;                fs.Close();&lt;br /&gt;                //Si todo ha ido bien, se devolverá String.Empty&lt;br /&gt;                return String.Empty;&lt;br /&gt;            }&lt;br /&gt;            catch  (WebException ex){&lt;br /&gt;                if  (escritor == null )  escritor.Close();&lt;br /&gt;                fs.Close();&lt;br /&gt;                // Si se produce algún fallo, se devolverá el mensaje del error&lt;br /&gt;                return ex.Message;&lt;br /&gt;            }&lt;br /&gt;          &lt;br /&gt;       &lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;       public String subirFicheroSeguimiento(String  fichero,  String destino ,  String  dir )&lt;br /&gt;       {&lt;br /&gt;            FileInfo  infoFichero = new FileInfo(fichero);&lt;br /&gt;&lt;br /&gt;            String  uri;&lt;br /&gt;            uri = destino;&lt;br /&gt;&lt;br /&gt;            // Si no existe el directorio, lo creamos&lt;br /&gt;            if (!existeObjeto(ref dir)) {}&lt;br /&gt;                // Dim str As String = creaDirectorio(dir)&lt;br /&gt;           &lt;br /&gt;&lt;br /&gt;           FtpWebRequest  peticionFTP;&lt;br /&gt;&lt;br /&gt;            // Creamos una peticion FTP con la dirección del fichero que vamos a subir&lt;br /&gt;            peticionFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(destino));&lt;br /&gt;&lt;br /&gt;            // Fijamos el usuario y la contraseña de la petición&lt;br /&gt;            peticionFTP.Credentials = new NetworkCredential(user, pass);&lt;br /&gt;            peticionFTP.KeepAlive = false;&lt;br /&gt;            peticionFTP.UsePassive = false;&lt;br /&gt;&lt;br /&gt;            // Seleccionamos el comando que vamos a utilizar: Subir un fichero&lt;br /&gt;            peticionFTP.Method = WebRequestMethods.Ftp.UploadFile;&lt;br /&gt;&lt;br /&gt;            // Especificamos el tipo de transferencia de datos&lt;br /&gt;            peticionFTP.UseBinary = true;&lt;br /&gt;&lt;br /&gt;            // Informamos al servidor sobre el tamaño del fichero que vamos a subir&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                peticionFTP.ContentLength = infoFichero.Length;&lt;br /&gt;            }&lt;br /&gt;              &lt;br /&gt;            catch   ( Exception  ex)&lt;br /&gt;                {&lt;br /&gt;                return ex.Message;&lt;br /&gt;                }&lt;br /&gt;            // Fijamos un buffer de 2KB&lt;br /&gt;            int longitudBuffer;&lt;br /&gt;            longitudBuffer = 2048;&lt;br /&gt;            byte[] lector = new Byte[2048];&lt;br /&gt;&lt;br /&gt;            int num;&lt;br /&gt;&lt;br /&gt;            // Abrimos el fichero para subirlo&lt;br /&gt;              FileStream fs;&lt;br /&gt;            fs = infoFichero.OpenRead();&lt;br /&gt;             Stream escritor  = null;&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                escritor = peticionFTP.GetRequestStream();&lt;br /&gt;&lt;br /&gt;                // Leemos 2 KB del fichero en cada iteración&lt;br /&gt;                num = fs.Read(lector, 0, longitudBuffer);&lt;br /&gt;&lt;br /&gt;                while (num != 0)&lt;br /&gt;                {&lt;br /&gt;                    // Escribimos el contenido del flujo de lectura en el&lt;br /&gt;                    // flujo de escritura del comando FTP&lt;br /&gt;                    escritor.Write(lector, 0, num);&lt;br /&gt;                    num = fs.Read(lector, 0, longitudBuffer);&lt;br /&gt;              }&lt;br /&gt;&lt;br /&gt;                escritor.Close();&lt;br /&gt;                fs.Close();&lt;br /&gt;                // Si todo ha ido bien, se devolverá String.Empty&lt;br /&gt;                return String.Empty;&lt;br /&gt;            }&lt;br /&gt;            catch  (WebException ex)&lt;br /&gt;            {&lt;br /&gt;                if (!(escritor==null))  escritor.Close();&lt;br /&gt;                fs.Close();&lt;br /&gt;                // Si se produce algún fallo, se devolverá el mensaje del error&lt;br /&gt;                return ex.Message;&lt;br /&gt;            }&lt;br /&gt;          &lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;       public void descargarDirectorio(string dirD)&lt;br /&gt;       {&lt;br /&gt;           FtpWebRequest dirFtp = ((FtpWebRequest)FtpWebRequest.Create(host));&lt;br /&gt;&lt;br /&gt;           // Los datos del usuario (credenciales)&lt;br /&gt;           NetworkCredential cr = new NetworkCredential(user, pass);&lt;br /&gt;           dirFtp.Credentials = cr;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;           // El comando a ejecutar&lt;br /&gt;           dirFtp.Method = &quot;LIST&quot;;&lt;br /&gt;&lt;br /&gt;           // También usando la enumeración de WebRequestMethods.Ftp&lt;br /&gt;           dirFtp.Method = WebRequestMethods.Ftp.ListDirectory;&lt;br /&gt;&lt;br /&gt;           // Obtener el resultado del comando&lt;br /&gt;           StreamReader reader =&lt;br /&gt;               new StreamReader(dirFtp.GetResponse().GetResponseStream());&lt;br /&gt;&lt;br /&gt;           // Leer el stream&lt;br /&gt;           string res = &quot;&quot;;//reader.ReadLine();&lt;br /&gt;           //Response.Write(res);&lt;br /&gt;           string nuevo_dir = &quot;&quot;;&lt;br /&gt;&lt;br /&gt;           while (!reader.EndOfStream)&lt;br /&gt;           {&lt;br /&gt;&lt;br /&gt;               res = reader.ReadLine();&lt;br /&gt;&lt;br /&gt;               if (res.Contains(&quot;.&quot;))&lt;br /&gt;               {&lt;br /&gt;                   //Response.Write(res + &quot;&lt;br /&gt;&quot;);&lt;br /&gt;                   bajaArchivo(host, dirD, res);&lt;br /&gt;               }&lt;br /&gt;               else&lt;br /&gt;               {&lt;br /&gt;                   //Response.Write(res + &quot;&lt;br /&gt;&quot;);&lt;br /&gt;&lt;br /&gt;                   nuevo_dir = dirD + res;&lt;br /&gt;                   Directory.CreateDirectory(nuevo_dir);&lt;br /&gt;&lt;br /&gt;                   listarDirRecursivo(host + res + &quot;/&quot;, nuevo_dir + &quot;\\&quot;, user, pass);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;               }&lt;br /&gt;&lt;br /&gt;           }&lt;br /&gt;           reader.Close();&lt;br /&gt;  &lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;       private void listarDirRecursivo(string dirO, string dirD, string user, string pass)&lt;br /&gt;       {&lt;br /&gt;           FtpWebRequest dirFtp = ((FtpWebRequest)FtpWebRequest.Create(dirO));&lt;br /&gt;&lt;br /&gt;           // Los datos del usuario (credenciales)&lt;br /&gt;           NetworkCredential cr = new NetworkCredential(user, pass);&lt;br /&gt;           dirFtp.Credentials = cr;&lt;br /&gt;           // El comando a ejecutar&lt;br /&gt;           dirFtp.Method = &quot;LIST&quot;;&lt;br /&gt;&lt;br /&gt;           // También usando la enumeración de WebRequestMethods.Ftp&lt;br /&gt;           dirFtp.Method = WebRequestMethods.Ftp.ListDirectory;&lt;br /&gt;&lt;br /&gt;           // Obtener el resultado del comando&lt;br /&gt;           StreamReader reader = new StreamReader(dirFtp.GetResponse().GetResponseStream());&lt;br /&gt;&lt;br /&gt;           // Leer el stream&lt;br /&gt;           string res = &quot;&quot;;//reader.ReadLine();&lt;br /&gt;           //Response.Write(res);&lt;br /&gt;&lt;br /&gt;           string nuevo_dir = &quot;&quot;;&lt;br /&gt;&lt;br /&gt;           while (!reader.EndOfStream)&lt;br /&gt;           {&lt;br /&gt;&lt;br /&gt;               res = reader.ReadLine();&lt;br /&gt;&lt;br /&gt;               if (res.Contains(&quot;.&quot;))&lt;br /&gt;               {&lt;br /&gt;                   //Response.Write(res + &quot;&lt;br /&gt;&quot;);&lt;br /&gt;                   bajaArchivo(dirO, dirD, res);&lt;br /&gt;               }&lt;br /&gt;               else&lt;br /&gt;               {&lt;br /&gt;                   //Response.Write(res + &quot;&lt;br /&gt;&quot;);&lt;br /&gt;                   nuevo_dir = dirD + res;&lt;br /&gt;                   Directory.CreateDirectory(nuevo_dir);&lt;br /&gt;                   listarDirRecursivo(dirO + res + &quot;/&quot;, nuevo_dir + &quot;\\&quot;, user, pass);&lt;br /&gt;               }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;               //   res = reader.ReadLine();&lt;br /&gt;               // Response.Write(res + &quot;&lt;br /&gt;&quot;);&lt;br /&gt;           }&lt;br /&gt;           reader.Close();&lt;br /&gt;&lt;br /&gt;           // Mostrarlo.&lt;br /&gt;           //Console.WriteLine(res);&lt;br /&gt;&lt;br /&gt;           // Cerrar el stream abierto.&lt;br /&gt;&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;       private void bajaArchivo(string dirO, string dirD, string archivo)&lt;br /&gt;       {&lt;br /&gt;           using (WebClient wc = new WebClient())&lt;br /&gt;           {&lt;br /&gt;               wc.Proxy = null;&lt;br /&gt;               wc.BaseAddress = dirO;&lt;br /&gt;&lt;br /&gt;               // Authenticate, then download a file to the FTP server.&lt;br /&gt;               // The same approach also works for HTTP and HTTPS.&lt;br /&gt;&lt;br /&gt;               string username = user;&lt;br /&gt;               string password = pass;&lt;br /&gt;               wc.Credentials = new NetworkCredential(username, password);&lt;br /&gt;               wc.DownloadFile(archivo, dirD + archivo);&lt;br /&gt;           }&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;       public void bajaArchivoP(string dirO, string dirD, string archivo)&lt;br /&gt;       {&lt;br /&gt;           using (WebClient wc = new WebClient())&lt;br /&gt;           {&lt;br /&gt;               wc.Proxy = null;&lt;br /&gt;               wc.BaseAddress = dirO;&lt;br /&gt;&lt;br /&gt;               // Authenticate, then download a file to the FTP server.&lt;br /&gt;               // The same approach also works for HTTP and HTTPS.&lt;br /&gt;&lt;br /&gt;               string username = user;&lt;br /&gt;               string password = pass;&lt;br /&gt;               wc.Credentials = new NetworkCredential(username, password);&lt;br /&gt;               wc.DownloadFile(archivo, dirD);&lt;br /&gt;           }&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;       public void subirArchivo(string rutaOrigen, string rutaDestino)&lt;br /&gt;       {&lt;br /&gt;           using (WebClient wc = new WebClient())&lt;br /&gt;           {&lt;br /&gt;               wc.Proxy = null;&lt;br /&gt;              &lt;br /&gt;               // Authenticate, then download a file to the FTP server.&lt;br /&gt;               // The same approach also works for HTTP and HTTPS.&lt;br /&gt;&lt;br /&gt;               string username = user;&lt;br /&gt;               string password = pass;&lt;br /&gt;               wc.Credentials = new NetworkCredential(username, password);&lt;br /&gt;               wc.UploadFile(rutaDestino, rutaOrigen);&lt;br /&gt;           }&lt;br /&gt;&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;       public Boolean verificaExitencia(string nombreObjeto)&lt;br /&gt;       {&lt;br /&gt;           FtpWebRequest dirFtp = ((FtpWebRequest)FtpWebRequest.Create(host));&lt;br /&gt;           Boolean respuesta = false;&lt;br /&gt;&lt;br /&gt;           // Los datos del usuario (credenciales)&lt;br /&gt;           NetworkCredential cr = new NetworkCredential(user, pass);&lt;br /&gt;           dirFtp.Credentials = cr;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;           // El comando a ejecutar&lt;br /&gt;           dirFtp.Method = &quot;LIST&quot;;&lt;br /&gt;&lt;br /&gt;           // También usando la enumeración de WebRequestMethods.Ftp&lt;br /&gt;           dirFtp.Method = WebRequestMethods.Ftp.ListDirectory;&lt;br /&gt;&lt;br /&gt;           // Obtener el resultado del comando&lt;br /&gt;           StreamReader reader =&lt;br /&gt;               new StreamReader(dirFtp.GetResponse().GetResponseStream());&lt;br /&gt;&lt;br /&gt;           // Leer el stream&lt;br /&gt;           string res = &quot;&quot;;//reader.ReadLine();&lt;br /&gt;           //Response.Write(res);&lt;br /&gt;     &lt;br /&gt;           while (!reader.EndOfStream)&lt;br /&gt;           {&lt;br /&gt;               res = reader.ReadLine();&lt;br /&gt;&lt;br /&gt;               if (res == nombreObjeto)&lt;br /&gt;               {&lt;br /&gt;                   respuesta= true;&lt;br /&gt;               }&lt;br /&gt; &lt;br /&gt;           }&lt;br /&gt;           reader.Close();&lt;br /&gt;           return respuesta;&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://losdevelopers.blogspot.com/feeds/2797144843093502260/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://losdevelopers.blogspot.com/2011/07/cliente-ftp-con-vbnet_13.html#comment-form' title='4 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/2797144843093502260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/2797144843093502260'/><link rel='alternate' type='text/html' href='http://losdevelopers.blogspot.com/2011/07/cliente-ftp-con-vbnet_13.html' title='Cliente ftp con CSharp'/><author><name>dacruga</name><uri>http://www.blogger.com/profile/18324891380570038574</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7461899613955777598.post-745191794201395838</id><published>2011-07-13T08:45:00.000-07:00</published><updated>2011-07-14T07:15:37.864-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="msdos"/><title type='text'>[MSDOS] Creando carpetas desde un archivo de texto</title><content type='html'>En dias anteriores me enfrente con el problema de tener que crear a partir de un archivo de texto (.txt) un grupo de carpetas, la forma dificil hubiera sido ir creando una a una cada una de ellas, mediante el explorador de windows (Archivo/Nuevo/Carpeta), el problema era que el nombre de las carpetas podría cambiar y tendría que generar nuevamente todas.&lt;br /&gt;
&lt;br /&gt;
Investigando me encontre con el comando FOR de MSDOS que me resolvió este problema, permitiéndome generar las carpetas, las veces que yo quisiera.&lt;br /&gt;
&lt;br /&gt;
A continuación mostraré un video con los pasos a seguir de como lo resolver este problema:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.youtube.com/watch?v=aDi3jxMFUng&quot;&gt;Video de demostración&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://losdevelopers.blogspot.com/feeds/745191794201395838/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://losdevelopers.blogspot.com/2011/07/creando-carpetas-desde-un-archivo-de.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/745191794201395838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7461899613955777598/posts/default/745191794201395838'/><link rel='alternate' type='text/html' href='http://losdevelopers.blogspot.com/2011/07/creando-carpetas-desde-un-archivo-de.html' title='[MSDOS] Creando carpetas desde un archivo de texto'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>