<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comentarios en: Vbs Script para hacer copia de seguridad de un fichero.</title>
	<atom:link href="http://www.davidsuarez.es/2008/05/vbs-script-para-hacer-copia-de-seguridad-de-un-fichero/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidsuarez.es/2008/05/vbs-script-para-hacer-copia-de-seguridad-de-un-fichero/</link>
	<description>Web de recursos de programación y de todo un poco</description>
	<lastBuildDate>Sun, 05 Sep 2010 16:41:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Por: david</title>
		<link>http://www.davidsuarez.es/2008/05/vbs-script-para-hacer-copia-de-seguridad-de-un-fichero/comment-page-1/#comment-2955</link>
		<dc:creator>david</dc:creator>
		<pubDate>Tue, 29 Dec 2009 21:26:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidsuarez.es/?p=626#comment-2955</guid>
		<description>Anfell, si quieres ir a la ruta que has hecho usa las variables %TEMP% o %TMP%.
De otro modo encierra tu ruta entre comillas.</description>
		<content:encoded><![CDATA[<p>Anfell, si quieres ir a la ruta que has hecho usa las variables %TEMP% o %TMP%.<br />
De otro modo encierra tu ruta entre comillas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: anfell</title>
		<link>http://www.davidsuarez.es/2008/05/vbs-script-para-hacer-copia-de-seguridad-de-un-fichero/comment-page-1/#comment-2954</link>
		<dc:creator>anfell</dc:creator>
		<pubDate>Tue, 29 Dec 2009 14:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidsuarez.es/?p=626#comment-2954</guid>
		<description>por medio de un . bat trato de ejecutar esta linea de codigo pero dice que no reconoce -Configuración local- 

cd C:\Documents and Settings\xxxxx\Configuración local\Temp

necesito que por favor me colaboren, lo que trato hacer es entrar para borrar la informacion pero me falla la ruta

gracias</description>
		<content:encoded><![CDATA[<p>por medio de un . bat trato de ejecutar esta linea de codigo pero dice que no reconoce -Configuración local- </p>
<p>cd C:\Documents and Settings\xxxxx\Configuración local\Temp</p>
<p>necesito que por favor me colaboren, lo que trato hacer es entrar para borrar la informacion pero me falla la ruta</p>
<p>gracias</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Ezequiel</title>
		<link>http://www.davidsuarez.es/2008/05/vbs-script-para-hacer-copia-de-seguridad-de-un-fichero/comment-page-1/#comment-2607</link>
		<dc:creator>Ezequiel</dc:creator>
		<pubDate>Thu, 27 Aug 2009 18:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidsuarez.es/?p=626#comment-2607</guid>
		<description>Hola.
Yo lo que hago es mapear la unidad y despues hacer mi copia pero son muy grandes mis archivos lo que hace es que me los copia corrupto y me manda este error.

The specified network name is no longer available. (Exception from HRESULT: 0x80070040)

este es mi codigo no se q hacer me podran ayudar, muchas gracias.

Dim objNetwork, objFSO
Dim strDriveLetter, strRemotePath, strProfile, strUser, strPassword
        strDriveLetter = &quot;P:&quot;
        strRemotePath = &quot;\\nombre_equipo\c$&quot;
        strProfile = &quot;False&quot;
        strUser = &quot;Usuario&quot;
        strPassword = &quot;xxx&quot;
        objNetwork = CreateObject(&quot;WScript.Network&quot;)

        objNetwork.MapNetworkDrive(strDriveLetter, strRemotePath, strProfile, strUser, strPassword)
  
objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
objFSO.CopyFile(&quot;C:\cheq\Respaldo\respaldo.zip&quot;, &quot;P:\&quot;)</description>
		<content:encoded><![CDATA[<p>Hola.<br />
Yo lo que hago es mapear la unidad y despues hacer mi copia pero son muy grandes mis archivos lo que hace es que me los copia corrupto y me manda este error.</p>
<p>The specified network name is no longer available. (Exception from HRESULT: 0&#215;80070040)</p>
<p>este es mi codigo no se q hacer me podran ayudar, muchas gracias.</p>
<p>Dim objNetwork, objFSO<br />
Dim strDriveLetter, strRemotePath, strProfile, strUser, strPassword<br />
        strDriveLetter = &#8220;P:&#8221;<br />
        strRemotePath = &#8220;\\nombre_equipo\c$&#8221;<br />
        strProfile = &#8220;False&#8221;<br />
        strUser = &#8220;Usuario&#8221;<br />
        strPassword = &#8220;xxx&#8221;<br />
        objNetwork = CreateObject(&#8220;WScript.Network&#8221;)</p>
<p>        objNetwork.MapNetworkDrive(strDriveLetter, strRemotePath, strProfile, strUser, strPassword)</p>
<p>objFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br />
objFSO.CopyFile(&#8220;C:\cheq\Respaldo\respaldo.zip&#8221;, &#8220;P:\&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: david</title>
		<link>http://www.davidsuarez.es/2008/05/vbs-script-para-hacer-copia-de-seguridad-de-un-fichero/comment-page-1/#comment-2092</link>
		<dc:creator>david</dc:creator>
		<pubDate>Fri, 30 Jan 2009 20:26:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidsuarez.es/?p=626#comment-2092</guid>
		<description>Helmut, se aprende probando.
Yo mapeatría la unidad con usuario y contraseña y lego utilizas este script.
Mapear:

[vb]
Dim WinExec, objFSO, WshShell, WSHNetwork

Set WSHNetwork = WScript.CreateObject(&quot;WScript.Network&quot;)
Set WinExec = CreateObject(&quot;WScript.Shell&quot;)

WSHNetwork.MapNetworkDrive &quot;L:&quot;, &quot;\\Labsrv\Export&quot;,&quot;False&quot;,&quot;dominio\usuario&quot;,&quot;pwd&quot;

objShell.NameSpace(&quot;L:&quot;).Self.Name = &quot;Lab&quot;
Wscript.Sleep 10000

&#039;aqui el código de copia de seguridad
WScript.Quit
[/vb]</description>
		<content:encoded><![CDATA[<p>Helmut, se aprende probando.<br />
Yo mapeatría la unidad con usuario y contraseña y lego utilizas este script.<br />
Mapear:</p>
<div class="igBar"><span id="lvb-1"><a href="#" onclick="javascript:showPlainTxt('vb-1'); return false;">CLIC PARA VER TEXTO PLANO</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-1">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> WinExec, objFSO, WshShell, WSHNetwork</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Set</span> WSHNetwork = WScript.<span style="color: #b1b100;">CreateObject</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"WScript.Network"</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Set</span> WinExec = <span style="color: #b1b100;">CreateObject</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"WScript.Shell"</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">WSHNetwork.<span style="color: #66cc66;">MapNetworkDrive</span> <span style="color: #ff0000;">"L:"</span>, <span style="color: #ff0000;">"\\Labsrv\Export"</span>,<span style="color: #ff0000;">"False"</span>,<span style="color: #ff0000;">"dominio\usuario"</span>,<span style="color: #ff0000;">"pwd"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">objShell.<span style="color: #66cc66;">NameSpace</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"L:"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color: #66cc66;">Self</span>.<span style="color: #b1b100;">Name</span> = <span style="color: #ff0000;">"Lab"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Wscript.<span style="color: #66cc66;">Sleep</span> <span style="color: #cc66cc;color:#800000;">10000</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'aqui el código de copia de seguridad</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">WScript.<span style="color: #66cc66;">Quit</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: helmut</title>
		<link>http://www.davidsuarez.es/2008/05/vbs-script-para-hacer-copia-de-seguridad-de-un-fichero/comment-page-1/#comment-2089</link>
		<dc:creator>helmut</dc:creator>
		<pubDate>Thu, 29 Jan 2009 19:37:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidsuarez.es/?p=626#comment-2089</guid>
		<description>bueno hola david yo soy nuevo en esto de scrips vbs pero me parece interesante el tema es el siguiente yo quiero copiar backup de una carpeta  a otra maquina que tiene window 2003 server y me pide siempre un usuario y pasword para copiar dicha carpeta  y yo ago esto todos los dias de manera clasica copoiando y pegando por favor me podrias decir o guiar como seria mi codificacion.</description>
		<content:encoded><![CDATA[<p>bueno hola david yo soy nuevo en esto de scrips vbs pero me parece interesante el tema es el siguiente yo quiero copiar backup de una carpeta  a otra maquina que tiene window 2003 server y me pide siempre un usuario y pasword para copiar dicha carpeta  y yo ago esto todos los dias de manera clasica copoiando y pegando por favor me podrias decir o guiar como seria mi codificacion.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
