<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pesadillo.com &#187; .BAT</title>
	<atom:link href="http://www.pesadillo.com/pesadillo/?feed=rss2&#038;tag=bat" rel="self" type="application/rss+xml" />
	<link>http://www.pesadillo.com/pesadillo</link>
	<description>&#34;pesadillo&#34; en la RED</description>
	<lastBuildDate>Thu, 07 Jul 2022 12:29:34 +0000</lastBuildDate>
	<language>es-ES</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>COMPRIMIR DESDE LINEA DE COMANDOS COMPACT y ZIP CON .BAT</title>
		<link>http://www.pesadillo.com/pesadillo/?p=8208</link>
		<comments>http://www.pesadillo.com/pesadillo/?p=8208#comments</comments>
		<pubDate>Tue, 11 Jun 2013 22:06:20 +0000</pubDate>
		<dc:creator>pesadillo</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[.BAT]]></category>

		<guid isPermaLink="false">http://www.pesadillo.com/pesadillo/?p=8208</guid>
		<description><![CDATA[COMPACT permite que un archivo o un directorio se compriman en cuanto a su forma de almacenarlos en el disco, es decir, que no comprime la información de los archivos o carpetas sino que utiliza una forma comprimida de almacenarla. Por eso exige que el disco donde se almacenan esté formateado de una forma específica (concretamente en NTFS). Una vez [...]]]></description>
				<content:encoded><![CDATA[<p>COMPACT permite que un archivo o un directorio se compriman en cuanto a su forma de almacenarlos en el disco, es decir, que no comprime la información de los archivos o carpetas sino que utiliza una forma comprimida de almacenarla. Por eso exige que el disco donde se almacenan esté formateado de una forma específica (concretamente en NTFS). Una vez que se elige que un archivo es de tipo comprimido (se marca con una &#8220;C&#8221; en los atributos que señala el comando COMPACT) lo seguirá siendo hasta que se le cambie su carácter. De modo que si editas y modificas un archivo comprimido al guardarlo se guarda como archivo comprimido. Si comprimes un directorio, todo lo que se guarde en él se guardará en forma comprimida. No sé en que consiste la compresión que hace el comando COMPACT pero no es como la de Winzip o la de Winrar. Estos programas compresores comprimen la información utilizando combinaciones de algoritmos de encriptado y otros que permiten detectar repeticiones y sustituirlas por algo como la cuenta de repetición y el texto repetido (algo como sí en lugar de &#8220;abcabcabcabcabc&#8221; guardaras &#8220;5abc&#8221;). Pero los archivos comprimidos de esta manera son archivos &#8220;normales&#8221; para el sistema operativo. De hecho se puede ver la información comprimida (que no se parece en nada a la original y resulta ilegible).<br />
Dicho lo anterior debería quedar claro que si copias archivos de un directorio comprimido con COMPACT a un directorio normal los archivos en el directorio normal estarán descomprimidos. Si copias un archivo comprimido en otro archivo, la copia estará descomprimida. Si sobreescribes un archivo comprimido con el contenido de otro archivo, el archivo comprimido seguirá estando comprimido pero con la información cambiada. De alguna manera al escribir sobre un archivo comprimido se comprime y al leerlo se descomprime, sin que podamos ver el resultado. El explorador de Windows sabe si un archivo o un directorio están comprimidos y los muestra en azul.</p>
<p>compact c:\&#8221;nombre de archivo&#8221;/u</p>
<p>compact /?<br />
Muestra o altera la compresión de los archivos en particiones NTFS.</p>
<p>COMPACT [/C | /U] [/S[:dir]] [/A] [/I] [/F] [/Q] [filename [...]]</p>
<p>/C Comprime los archivos especificados. Los directorios serán marcados para que los archivos agregados después sean comprimidos.<br />
/U Descomprime los archivos especificados. Los directorios serán marcados para que los archivos agregados después no sean comprimidos.<br />
/S Efectúa la operación especificada en los archivos del directorio dado y todos los subdirectorios. De forma predeterminada, &#8220;dir&#8221; es el directorio actual.<br />
/A Muestra los archivos ocultos o los atributos del sistema. Estos archivos se omiten por defecto.<br />
/I Continua efectuando la operación especificada incluso después de que hayan ocurrido los errores. De forma predeterminada, COMPACT para cuando se encuentra un error.<br />
/F Fuerza la operación de compresión en todos los archivos especificados, incluso en los que ya están comprimidos. Los archivos ya comprimidos se saltan por defecto.</p>
<p>/Q Informa sólo de la información del nombre de archivo más esencial.</p>
<p>Usado sin parámetros, COMPACT muestra el estado de la compresión del directorio actual y cualquier archivo que contenga. Puede usar múltiples nombres de archivo y comodines. Debe poner espacios entre los parámetros.</p>
<p>SI QUIERES COMPRIMIR EN ZIP:<br />
Descarga el quit de herramientas para administradores desde la siguiente página:</p>
<p><a href="http://www.microsoft.com/en-us/download/details.aspx?id=17657" target="_blank">http://www.microsoft.com/en-us/download/details.aspx?id=17657</a></p>
<p>El comado sería de la siguiente forma:</p>
<p><code>C:\&gt;compress /?</code></p>
<p>Syntax:</p>
<p>COMPRESS [-R] [-D] [-S] [ -Z | -ZX ] Source Destination<br />
COMPRESS -R [-D] [-S] [ -Z | -ZX ] Source [Destination]</p>
<p>Description:<br />
Compresses one or more files.</p>
<p>Parameter List:<br />
-R Rename compressed files.</p>
<p>-D Update compressed files only if out of date.</p>
<p>-S Suppress copyright information.</p>
<p>-ZX LZX compression. This is default compression.</p>
<p>-Z MS-ZIP compression.</p>
<p>Source Source file specification. Wildcards may be<br />
used.</p>
<p>Destination Destination file | path specification.<br />
Destination may be a directory. If Source is<br />
multiple files and -r is not specified,<br />
Destination must be a directory.</p>
<p>PARA COMPRIMIR CON ZIP DESDE LA LINEA DE COMANDOS, NECESITAMOS CREEAR UN SCRIPT:</p>
<pre class="brush: php; title: ; notranslate">
::Opcional, creamos un fichero
echo HOLA&gt;c:\fichero.txt

:: indicamos el fichero a comprimir
set FILETOZIP=c:\fichero.txt

::creamos un directorio temporal donde mover los ficheros
set TEMPDIR=C:\temp738
rmdir %TEMPDIR%
mkdir %TEMPDIR%
copy %FILETOZIP% %TEMPDIR%

::Creamos el scrip
echo Set objArgs = WScript.Arguments &gt; _zipIt.vbs
echo InputFolder = objArgs(0) &gt;&gt; _zipIt.vbs
echo ZipFile = objArgs(1) &gt;&gt; _zipIt.vbs
echo CreateObject(&quot;Scripting.FileSystemObject&quot;).CreateTextFile(ZipFile, True).Write &quot;PK&quot; ^&amp;

Chr(5) ^&amp; Chr(6) ^&amp; String(18, vbNullChar) &gt;&gt; _zipIt.vbs
echo Set objShell = CreateObject(&quot;Shell.Application&quot;) &gt;&gt; _zipIt.vbs
echo Set source = objShell.NameSpace(InputFolder).Items &gt;&gt; _zipIt.vbs
echo objShell.NameSpace(ZipFile).CopyHere(source) &gt;&gt; _zipIt.vbs
echo wScript.Sleep 2000 &gt;&gt; _zipIt.vbs
:: Comprimir el directorio en un fichero .zip
CScript  _zipIt.vbs  %TEMPDIR%  C:\comprimido.zip

::ejecutamos el explorador de ficheros para localizar el comprimido
start c:\
exit
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.pesadillo.com/pesadillo/?feed=rss2&#038;p=8208</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Acceso a directorios especiales  desde la linea de comandos (bach)</title>
		<link>http://www.pesadillo.com/pesadillo/?p=7269</link>
		<comments>http://www.pesadillo.com/pesadillo/?p=7269#comments</comments>
		<pubDate>Sun, 10 Mar 2013 23:00:28 +0000</pubDate>
		<dc:creator>pesadillo</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[.BAT]]></category>

		<guid isPermaLink="false">http://www.pesadillo.com/pesadillo/?p=7269</guid>
		<description><![CDATA[I just came across a big problem in the Spybot S&#38;D thread again, which should be addressed once and for all — if anyhow possible: Windows’ “Special Folders” like %APPDATA% or “All users Application Data”. Windows addresses special folder locations via so-called CSIDLs, and starting from Vista, it uses what we call KNOWNFOLDERIDs. It is vitally important to use these [...]]]></description>
				<content:encoded><![CDATA[<p>I just came across a big problem in the Spybot S&amp;D thread again, which should be addressed once and for all — if anyhow possible: Windows’ “Special Folders” like %APPDATA% or “All users Application Data”.</p>
<div>
<div>
<p>Windows addresses special folder locations via so-called CSIDLs, and starting from Vista, it uses what we call KNOWNFOLDERIDs. It is vitally important to use these instead of trying to hard-code stuff like</p>
<pre>%ALLUSERSPROFILE%\Application Data\whatever</pre>
<p>into PA installers. <em>Because they will fail on many systems!</em></p>
<p>For instance, let’s take the “local application data” (an easy one):</p>
<p>On an English-language Windows XP system, this will (usually) be</p>
<pre>C:\Documents and Settings\username\Local Settings\Application Data</pre>
<p>On a German-language Windows XP, it would look like</p>
<pre>C:\Dokumente und Einstellungen\username\Lokale Einstellungen\Anwendungsdaten</pre>
<p>Or on a Spanish system</p>
<pre>C:\Documents and Settings\username\Configuración local\Datos de programa</pre>
<p>Or even</p>
<pre>C:\Users\username\AppData\Local</pre>
<p>if you’re running Windows 7 with the English locale active. See what I mean?</p>
<p>To further complicate things, some of them are now file system <em>junctions</em> under Windows 7, which have special access settings. (Actually, much like symlinks on Linux.) Plus, users <em>do</em> have the possibility to actually <em>move</em> some of these locations (like putting their personal profile data onto another drive).</p>
<p>It seems the only universally working way is to <em>always ask the operating system</em> for the real names and locations of these “special places”. Because that will <em>always</em> return correct results, and we could be sure that a Portable App will function correctly, be it under Windows XP, or a foreign-language Windows 7.</p>
<p>I lately had this discussion over at Piriform’s CCleaner Forum. You might want to read my article “Getting Special Folders right on ALL systems” over there. It also contains some VBScript code (yuk!) to show what should be done. (In a clumsy way, by setting up environment variables.)</p>
<p>I strongly feel that the Portable Apps Platform should do this right from the beginning. I haven’t had a look yet on which of the (possibly) needed variables the NSIS system already provides, but I strongly suggest we should have at least most of the CSIDL-based plus some of the KNOWNFOLDERID-based (Vista and newer) in order to provide users with the greatest and most glitch-free PA experience — even on foreign-language systems, and all versions.</p>
<p>Getting hold of these “special locations” from the operating system within some part of NSIS code, and providing them as <em>variables</em> to use in PA development would be great. (And much better than setting up a zillion large environment variables!) I offer my help in getting this straight.</p>
<p>Here’s a list of the ones I currently address with the environment variables set by my VBScript. We <em>might</em> need a few more to address each and every issue correctly, though. I strongly feel using the “official” special paths would make the developers’ and the users’ lives much easier … <img title="Eye-wink" alt="Eye-wink" src="http://portableapps.com/sites/all/modules/smileys/packs/Example/wink.png" /></p>
<p>&#8212;</p>
<p><strong>1. VARIABLES THAT MAKE SENSE WITH PORTABLE APPS (YOU SHOULD USE THESE)</strong></p>
<p>These are most useful to use with Portable Apps/NSIS file operations. They will access the &#8220;right&#8221; special folders on almost any Windows 2000, XP, Vista or 7 machine, independent of its locale settings.</p>
<p><strong>%CDBurning%</strong> (CSIDL_CDBURN_AREA, 0x3b)</p>
<p>V6.0: The file system directory that acts as a staging area for files waiting to be written to a CD.<br />
A typical path is C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\CD Burning.</p>
<p><strong>%CommonFavorites%</strong> (CSIDL_COMMON_FAVORITES, 0x1f)</p>
<p>The file system directory that serves as a common repository for favorite items common to all users.</p>
<p><strong>%CommonOEMLinks%</strong> (CSIDL_COMMON_OEM_LINKS, 0x3a)</p>
<p>This value is recognized in Windows Vista for backward compatibility, but the folder itself is no longer used. I’ve seen it come back in Windows 7, though.</p>
<p><strong>%CommonStartup%</strong> (CSIDL_COMMON_STARTUP, 0&#215;18)</p>
<p>The file system directory that contains the programs that appear in the Startup folder for all users.<br />
A typical path is C:\Documents and Settings\All Users\Start Menu\Programs\Startup.</p>
<p><strong>%Cookies%</strong> (CSIDL_COOKIES, 0&#215;21)</p>
<p>The file system directory that serves as a common repository for Internet cookies.<br />
A typical path is C:\Documents and Settings\username\Cookies.</p>
<p><strong>%DesktopDirectory%</strong> (CSIDL_DESKTOPDIRECTORY, 0&#215;10)</p>
<p>The file system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself).<br />
A typical path is C:\Documents and Settings\username\Desktop.</p>
<p><strong>%Favorites%</strong> (CSIDL_FAVORITES, 0&#215;06)</p>
<p>The file system directory that serves as a common repository for the user&#8217;s favorite items.<br />
A typical path is C:\Documents and Settings\username\Favorites.</p>
<p><strong>%History%</strong> (CSIDL_HISTORY, 0&#215;22)</p>
<p>The file system directory that serves as a common repository for Internet history items.</p>
<p><strong>%InternetCache%</strong> (CSIDL_INTERNET_CACHE, 0&#215;20)</p>
<p>V4.72: The file system directory that serves as a common repository for temporary Internet files.<br />
A typical path is C:\Documents and Settings\username\Local Settings\Temporary Internet Files.</p>
<p><strong>%LocalAppData%</strong> (CSIDL_LOCAL_APPDATA, 0x1c)</p>
<p>V5.0: The file system directory that serves as a data repository for local (nonroaming) applications.<br />
A typical path is C:\Documents and Settings\username\Local Settings\Application Data.</p>
<p><strong>%Music%</strong> (CSIDL_MYMUSIC, 0x0d)</p>
<p>The file system directory that serves as a common repository for music files.<br />
A typical path is C:\Documents and Settings\User\My Documents\My Music.</p>
<p><strong>%Personal%</strong> (CSIDL_PERSONAL, 0&#215;05)</p>
<p>V6.0: The virtual folder that represents the My Documents desktop item. This is equivalent to CSIDL_MYDOCUMENTS.<br />
Previous to V6.0: The file system directory used to physically store a user&#8217;s common repository of documents.<br />
A typical path is C:\Documents and Settings\username\My Documents.<br />
This should be distinguished from the virtual My Documents folder in the namespace. To access that virtual folder, use SHGetFolderLocation, which returns the ITEMIDLIST for the virtual location, or refer to the technique described in Managing the File System.</p>
<p><strong>%Pictures%</strong> (CSIDL_MYPICTURES, 0&#215;27)</p>
<p>V5.0: The file system directory that serves as a common repository for image files.<br />
A typical path is C:\Documents and Settings\username\My Documents\My Pictures.</p>
<p><strong>%Profile%</strong> (CSIDL_PROFILE, 0&#215;28)</p>
<p>V5.0: The user&#8217;s profile folder.<br />
A typical path is C:\Users\username.<br />
Applications should not create files or folders at this level; they should put their data under the locations referred to by CSIDL_APPDATA or CSIDL_LOCAL_APPDATA. However, if you are creating a new Known Folder the profile root referred to by CSIDL_PROFILE is appropriate.</p>
<p><strong>%ProgramData%</strong> (CSIDL_COMMON_APPDATA, 0&#215;23)</p>
<p>V5.0: The file system directory that contains application data for all users.<br />
A typical path is C:\Documents and Settings\All Users\Application Data.<br />
This folder is used for application data that is not user specific. For example, an application can store a spell-check dictionary, a database of clip art, or a log file in the CSIDL_COMMON_APPDATA folder.<br />
This information will not roam and is available to anyone using the computer.</p>
<p><strong>%ProgramFiles%</strong> (CSIDL_PROGRAM_FILES, 0&#215;26)</p>
<p>V5.0: The Program Files folder.<br />
A typical path is C:\Program Files.</p>
<p><strong>%ProgramFilesCommon%</strong> (CSIDL_PROGRAM_FILES_COMMON, 0x2b)</p>
<p>V5.0: A folder for components that are shared across applications.<br />
A typical path is C:\Program Files\Common. Valid only for Windows XP.</p>
<p><strong>%ProgramFilesCommonX86%</strong> (CSIDL_PROGRAM_FILES_COMMONX86, 0x2c)</p>
<p><strong>%ProgramFilesX86%</strong> (CSIDL_PROGRAM_FILESX86, 0x2a)</p>
<p><strong>%PublicDesktop%</strong> (CSIDL_COMMON_DESKTOPDIRECTORY, 0&#215;19)</p>
<p>The file system directory that contains files and folders that appear on the desktop for all users.<br />
A typical path is C:\Documents and Settings\All Users\Desktop.</p>
<p><strong>%PublicDocuments%</strong> (CSIDL_COMMON_DOCUMENTS, 0x2e)</p>
<p>The file system directory that contains documents that are common to all users.<br />
A typical path is C:\Documents and Settings\All Users\Documents.</p>
<p><strong>%PublicMusic%</strong> (CSIDL_COMMON_MUSIC, 0&#215;35)</p>
<p>V6.0: The file system directory that serves as a repository for music files common to all users.<br />
A typical path is C:\Documents and Settings\All Users\Documents\My Music.</p>
<p><strong>%PublicPictures%</strong> (CSIDL_COMMON_PICTURES, 0&#215;36)</p>
<p>V6.0: The file system directory that serves as a repository for image files common to all users.<br />
A typical path is C:\Documents and Settings\All Users\Documents\My Pictures.</p>
<p><strong>%PublicVideos%</strong> (CSIDL_COMMON_VIDEO, 0&#215;37)</p>
<p>V6.0: The file system directory that serves as a repository for video files common to all users.<br />
A typical path is C:\Documents and Settings\All Users\Documents\My Videos.</p>
<p><strong>%Recent%</strong> (CSIDL_RECENT, 0&#215;08)</p>
<p>The file system directory that contains shortcuts to the user&#8217;s most recently used documents.<br />
A typical path is C:\Documents and Settings\username\My Recent Documents.<br />
To create a shortcut in this folder, use SHAddToRecentDocs.<br />
In addition to creating the shortcut, this function updates the Shell&#8217;s list of recent documents and adds the shortcut to the My Recent Documents submenu of the Start menu.</p>
<p><strong>%RoamingAppData%</strong> (CSIDL_APPDATA, 0x1a)</p>
<p>V4.71: The file system directory that serves as a common repository for application-specific data.<br />
A typical path is C:\Documents and Settings\username\Application Data.<br />
This CSIDL is supported by the redistributable Shfolder.dll for systems that do not have the Microsoft Internet Explorer 4.0 integrated Shell installed.</p>
<p><strong>%Startup%</strong> (CSIDL_STARTUP, 0&#215;07)</p>
<p>The file system directory that corresponds to the user&#8217;s Startup program group.<br />
The system starts these programs whenever any user logs on.<br />
A typical path is C:\Documents and Settings\username\Start Menu\Programs\Startup.</p>
<p><strong>%System%</strong> (CSIDL_SYSTEM, 0&#215;25)</p>
<p>V5.0: The Windows System folder.<br />
A typical path is C:\Windows\System32.</p>
<p><strong>%SystemX86%</strong> (CSIDL_SYSTEMX86, 0&#215;29)</p>
<p>A typical path is C:\Windows\System32.</p>
<p><strong>%Videos%</strong> (CSIDL_MYVIDEO, 0x0e)</p>
<p>V6.0: The file system directory that serves as a common repository for video files.<br />
A typical path is C:\Documents and Settings\username\My Documents\My Videos.</p>
<p><strong>%Windows%</strong> (CSIDL_WINDOWS, 0&#215;24)</p>
<p>V5.0: The Windows directory or SYSROOT. This corresponds to the %windir% or %SYSTEMROOT% environment variables.<br />
A typical path is C:\Windows.</p>
<p>&#8212;</p>
<p><strong>2. VARIABLES THAT ARE USEFUL FOR SPECIAL REQUIREMENTS</strong></p>
<p>These are intended for more special cases, or declared obsolete, and might not function as intended. You should know what you do, it’s all upon your own risk!</p>
<p><strong>%AdminTools%</strong> (CSIDL_ADMINTOOLS, 0&#215;30)</p>
<p>V5.0: The file system directory that is used to store administrative tools for an individual user.<br />
The MMC will save customized consoles to this directory, and it will roam with the user.</p>
<p><strong>%AltStartup%</strong> (CSIDL_ALTSTARTUP, 0x1d, obsolete, use &#8220;Startup&#8221;)</p>
<p>The file system directory that corresponds to the user&#8217;s nonlocalized Startup program group.<br />
This value is recognized in Windows Vista for backward compatibility, but the folder itself no longer exists.</p>
<p><strong>%CommonAdminTools%</strong> (CSIDL_COMMON_ADMINTOOLS, 0x2f)</p>
<p>V5.0: The file system directory that contains administrative tools for all users of the computer.</p>
<p><strong>%CommonAltStartup%</strong> (CSIDL_COMMON_ALTSTARTUP, 0x1e, obsolete, use &#8220;CommonStartup&#8221;)</p>
<p>The file system directory that corresponds to the nonlocalized Startup program group for all users.<br />
This value is recognized in Windows Vista for backward compatibility, but the folder itself no longer exists.</p>
<p><strong>%CommonPrograms%</strong> (CSIDL_COMMON_PROGRAMS, 0&#215;17)</p>
<p>The file system directory that contains the directories for the common program groups that appear on the Start menu for all users.<br />
A typical path is C:\Documents and Settings\All Users\Start Menu\Programs.</p>
<p><strong>%CommonStartMenu%</strong> (CSIDL_COMMON_STARTMENU, 0&#215;16)</p>
<p>The file system directory that contains the programs and folders that appear on the Start menu for all users.<br />
A typical path is C:\Documents and Settings\All Users\Start Menu.</p>
<p><strong>%CommonTemplates%</strong> (CSIDL_COMMON_TEMPLATES, 0x2d)</p>
<p>The file system directory that contains the templates that are available to all users.<br />
A typical path is C:\Documents and Settings\All Users\Templates.</p>
<p><strong>%Desktop%</strong> (CSIDL_DESKTOP, 0&#215;00)</p>
<p>The virtual folder that represents the Windows desktop, the root of the namespace.</p>
<p><strong>%Documents%</strong> (CSIDL_MYDOCUMENTS, 0x0c)</p>
<p>V6.0: The virtual folder that represents the My Documents desktop item.<br />
This value is equivalent to CSIDL_PERSONAL.</p>
<p><strong>%Fonts%</strong> (CSIDL_FONTS, 0&#215;14)</p>
<p>A virtual folder that contains fonts. A typical path is C:\Windows\Fonts.</p>
<p><strong>%LocalizedResourcesDir%</strong> (CSIDL_RESOURCES_LOCALIZED, 0&#215;39)</p>
<p><strong>%NetHood%</strong> (CSIDL_NETHOOD, 0&#215;13)</p>
<p>A file system directory that contains the link objects that may exist in the My Network Places virtual folder. It is not the same as CSIDL_NETWORK, which represents the network namespace root.<br />
A typical path is C:\Documents and Settings\username\NetHood.</p>
<p><strong>%PrintHood%</strong> (CSIDL_PRINTHOOD, 0x1b)</p>
<p>The file system directory that contains the link objects that can exist in the Printers virtual folder.<br />
A typical path is C:\Documents and Settings\username\PrintHood.</p>
<p><strong>%Programs%</strong> (CSIDL_PROGRAMS, 0&#215;02)</p>
<p>The file system directory that contains the user&#8217;s program groups (which are themselves file system directories).<br />
A typical path is C:\Documents and Settings\username\Start Menu\Programs.</p>
<p><strong>%ResourceDir%</strong> (CSIDL_RESOURCES, 0&#215;38)</p>
<p>Windows Vista: The file system directory that contains resource data.<br />
A typical path is C:\Windows\Resources.</p>
<p><strong>%SendTo%</strong> (CSIDL_SENDTO, 0&#215;09)</p>
<p>The file system directory that contains Send To menu items.<br />
A typical path is C:\Documents and Settings\username\SendTo.</p>
<p><strong>%StartMenu%</strong> (CSIDL_STARTMENU, 0x0b)</p>
<p>The file system directory that contains Start menu items.<br />
A typical path is C:\Documents and Settings\username\Start Menu.</p>
<p><strong>%Templates%</strong> (CSIDL_TEMPLATES, 0&#215;15)</p>
<p>The file system directory that serves as a common repository for document templates.<br />
A typical path is C:\Documents and Settings\username\Templates.</p>
<p>&#8212;</p>
<p><strong>3. VARIABLES THAT ONLY RETURN CLSIDs</strong></p>
<p>These are not primarily useful for Portable Apps (but can be for other purposes), because they only return CLSIDs. CLSIDs are globally unique identifiers that identify COM class objects, for instance &#8220;%RecycleBinFolder%&#8221; will return a CLSID of</p>
<pre>::{645FF040-5081-101B-9F08-00AA002F954E}</pre>
<p>which is the virtual folder that contains the objects in the user&#8217;s Recycle Bin. (Try typing this into Windows Explorer’s address bar!)</p>
<p><strong>%ComputerFolder%</strong> (CSIDL_DRIVES, 0&#215;11)</p>
<p>The virtual folder that represents My Computer, containing everything on the local computer: storage devices, printers, and Control Panel. The folder can also contain mapped network drives.</p>
<p><strong>%ComputersNearMe%</strong> (CSIDL_COMPUTERSNEARME, 0x3d)</p>
<p>The folder that represents other computers in your workgroup.<br />
Usually (only) contains a Workgroup or Domain Name.</p>
<p><strong>%ConnectionsFolder%</strong> (CSIDL_CONNECTIONS, 0&#215;31)</p>
<p>The virtual folder that represents Network Connections, that contains network and dial-up connections.</p>
<p><strong>%ControlPanelFolder%</strong> (CSIDL_CONTROLS, 0&#215;03)</p>
<p>The virtual folder that contains icons for the Control Panel applications.</p>
<p><strong>%InternetFolder%</strong> (CSIDL_INTERNET, 0&#215;01)</p>
<p>A virtual folder for Internet Explorer.</p>
<p><strong>%Network%</strong> (CSIDL_NETWORK, 0&#215;12)</p>
<p>A virtual folder that represents Network Neighborhood, the root of the network namespace hierarchy.</p>
<p><strong>%PrintersFolder%</strong> (CSIDL_PRINTERS, 0&#215;04)</p>
<p>The virtual folder that contains installed printers.</p>
<p><strong>%RecycleBinFolder%</strong> (CSIDL_BITBUCKET, 0x0a)</p>
<p>The virtual folder that contains the objects in the user&#8217;s Recycle Bin.</p>
<p>&#8212;</p>
<p>If you’re interested and wish to “peek around” a little, here are links to my VBScript example and it’s ReadMe text:<br />
<a href="http://www.kaufen-ist-toll.de/download/ccleaner/ReadMe.SetEnvVars.txt" target="_blank" rel="nofollow">ReadMe for SetEnvVars</a> (text file)<br />
<a href="http://www.kaufen-ist-toll.de/download/ccleaner/SetEnvVars.zip" target="_blank" rel="nofollow">SetEnvVars.zip</a> (ZIP; as written for use with CCleaner)</p>
<p><em><strong>Hint:</strong></em> If you play around with <em>SetEnvVars.vbs</em>, set</p>
<pre>debug = TRUE</pre>
<p>first in line #19. It will then show you everything it does (as message boxes). The WHS (Windows Scripting Host) must be enabled if you wish to execute the VBS via double-clicking. You can of course also invoke <em>wscript.exe</em> (in System32) manually to run it.</p>
<p><em><strong>Hint 2:</strong></em> <em>SetEnvvars.vbs</em> modifies the <em>User</em> Environment — it stores environment variables there. These can be unset again later, if you wish. You can do that on the command line or using <em>Computer Properties/Environment Variables/User Variables</em>.</p>
<p>If you wish to keep a “snapshot” of your environment before running <em>SetEnvVars.vbs</em>, you can use</p>
<pre>set &gt; environment.txt</pre>
<p>from a command prompt, which will save all environment variables in a text file.</p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.pesadillo.com/pesadillo/?feed=rss2&#038;p=7269</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leer archivo de texto desde batch (BAT)</title>
		<link>http://www.pesadillo.com/pesadillo/?p=7181</link>
		<comments>http://www.pesadillo.com/pesadillo/?p=7181#comments</comments>
		<pubDate>Thu, 13 Sep 2012 08:01:38 +0000</pubDate>
		<dc:creator>pesadillo</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[.BAT]]></category>

		<guid isPermaLink="false">http://www.pesadillo.com/pesadillo/?p=7181</guid>
		<description><![CDATA[A la pregunta de como &#8220;coger texto de linea con un bat&#8221;, aqui teneis el código. si quisiera almacenar la informacion que el programa capturo de cada linea en una variable como seria???? para cada linea tienes una variable que puedes usar mas adelante&#8230;antes del ENDLOCAL&#8230;..cuya sintaxis seria Linea_Numero, asi para la primera linea del Texto que ha sido leido [...]]]></description>
				<content:encoded><![CDATA[<p>A la pregunta de como &#8220;coger texto de linea con un bat&#8221;, aqui teneis el código.</p>
<pre class="brush: php; title: ; notranslate">
@echo off
setlocal enabledelayedexpansion

:reader
set c=0
for /f &quot;tokens=*&quot; %%a in (f.txt) do (
set /a c+=1
call set lin!c!=Linea_!c! = %%a
)
echo Archivo Leido
pause
for /l %%n in (1,1,!c!) do (echo !lin%%n!)
pause
endlocal
exit
</pre>
<p>si quisiera almacenar la informacion que el programa capturo de cada linea en una variable como seria????</p>
<pre class="brush: php; title: ; notranslate">
echo %var% &gt;archivo.txt
</pre>
<p>para cada linea tienes una variable que puedes usar mas adelante&#8230;antes del ENDLOCAL&#8230;..cuya sintaxis seria Linea_Numero, asi para la primera linea del Texto que ha sido leido usarias&#8230;.</p>
<pre class="brush: php; title: ; notranslate">ECHO %Linea_1% </pre>
<p>Despues de que el archivo a sido leido&#8230;</p>
<p>Fuente: <a href="http://foro.el-hacker.com" target="_blank">http://foro.el-hacker.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pesadillo.com/pesadillo/?feed=rss2&#038;p=7181</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quitar usb de forma segura.bat</title>
		<link>http://www.pesadillo.com/pesadillo/?p=6116</link>
		<comments>http://www.pesadillo.com/pesadillo/?p=6116#comments</comments>
		<pubDate>Wed, 20 Jun 2012 23:29:02 +0000</pubDate>
		<dc:creator>pesadillo</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[.BAT]]></category>

		<guid isPermaLink="false">http://www.pesadillo.com/pesadillo/?p=6116</guid>
		<description><![CDATA[%SystemRoot%\System32\RUNDLL32.EXE shell32.dll,Control_RunDLL hotplug.dll]]></description>
				<content:encoded><![CDATA[<p>%SystemRoot%\System32\RUNDLL32.EXE shell32.dll,Control_RunDLL hotplug.dll </p>
]]></content:encoded>
			<wfw:commentRss>http://www.pesadillo.com/pesadillo/?feed=rss2&#038;p=6116</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cambiar la dirección IP dinámica a estática con BAT</title>
		<link>http://www.pesadillo.com/pesadillo/?p=7764</link>
		<comments>http://www.pesadillo.com/pesadillo/?p=7764#comments</comments>
		<pubDate>Fri, 13 Jan 2012 15:14:39 +0000</pubDate>
		<dc:creator>pesadillo</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[.BAT]]></category>

		<guid isPermaLink="false">http://www.pesadillo.com/pesadillo/?p=7764</guid>
		<description><![CDATA[Cambiar la dirección IP dinámica a estática Introduce en la consola: netsh interface ip set address &#8220;Conexion de area local&#8221; static (dirección IP) (mascara de subred) (puerta de enlace) métrica Los paréntesis no se ponen, son solo para que no te confundas. ─ Los datos de la máscara de subred y la puerta de enlace los obtienes con el comando [...]]]></description>
				<content:encoded><![CDATA[<p>Cambiar la dirección IP dinámica a estática</p>
<p>Introduce en la consola:</p>
<p>netsh interface ip set address &#8220;Conexion de area local&#8221; static (dirección IP) (mascara de subred) (puerta de enlace) métrica<br />
Los paréntesis no se ponen, son solo para que no te confundas.<br />
─ Los datos de la máscara de subred y la puerta de enlace los obtienes con el comando IPCONFIG /ALL.<br />
─ La dirección IP es la que vas a asignar, tiene que estar en el mismo rango que la puerta de enlace, hay varios grupos pero para que no te confundas simplemente súmale dos números al valor final de la puerta de enlace que tienes asignada.<br />
Un ejemplo de cómo quedaría finalmente:</p>
<pre class="brush: php; title: ; notranslate">
Interface ip set address &quot;Conexion de area local&quot; static 192.168.1.3 255.255.255.0 192.168.1.1 1
</pre>
<p>Crear un archivo batch para cambiar de forma sencilla tu dirección IP</p>
<p>Para crear un archivo batch que permita cambiar la dirección IP estática a dinámica, escribe lo siguiente en el Bloc de notas:</p>
<pre class="brush: php; title: ; notranslate">
netsh interface ip set dns &quot;Conexion de area local&quot; dhcp
netsh interface ip set wins &quot;Conexion de area local&quot; dhcp
netsh interface ip set address &quot;Conexion de area local&quot; dhcp
ipconfig /renew
</pre>
<p>Para crear otro que permita cambiar la dirección IP dinámica a estática, escribe solo la línea que utilizaste en el ejemplo anterior.<br />
Guárdalos con los nombres: dinámica.cmd y estatica.cmd, asegúrate que queden con la extensión de archivo .cmd. De ahora en adelante puedes cambiar tu dirección ejecutando cada batch alternativamente de acuerdo a tu necesidad.</p>
<p>Al trabajar para varios clientes, una de las cosas más engorrosas era tener que modificar sistemáticamente la configuración de la red para acceder a los diferentes servidores en función del cliente que me encontraba.</p>
<p><strong>Windows XP</strong></p>
<p>Podeis copiar el siguiente texto y copiarlo en un fichero con extensión bat o cmd para ejecutarlo.</p>
<p>Para asignar una dirección estática</p>
<pre class="brush: php; title: ; notranslate">
netsh interface ip set address name=&quot;Conexion de area local&quot; source=static 192.168.1.130 255.255.255.0 192.168.0.1 1
netsh interface ip set dns name=&quot;Conexion de area local&quot; source=static 192.168.1.1 primary
netsh interface ip add dns name=&quot;Conexion de area local&quot; addr=195.219.118.16
</pre>
<p>Entre comillas debeis poner el nombre del adaptador (Atención porque en castellano normalmente viene de serie “Conexión de área local” con acentos, y hay que modificar el nombre de la conexión yquitarle los acentos).</p>
<p>Para asignar una dirección dinámica</p>
<pre class="brush: php; title: ; notranslate">
netsh interface ip set ADDRESS  &quot;Conexion de area local&quot; DHCP
netsh interface ip set DNS  &quot;Conexion de area local&quot; DHCP
</pre>
<p><strong>WINDOWS 7 / SEVEN</strong></p>
<pre class="brush: php; title: ; notranslate">
netsh interface ipv4 set address name = &quot;Conexion de area local&quot; source=static address=172.0.0.181 mask=255.255.255.0 gateway=172.0.0.121
netsh interface ipv4 add dnsserver name=&quot;Conexion de area local&quot; address=192.168.1.1 index=1
netsh interface ipv4 add dnsserver name=&quot;Conexion de area local&quot; address=192.168.1.10 index=2
</pre>
<p>MUY IMPORTANTE: ES IMPRESCINDIBLE EJECUTARLO COMO ADMINISTRADOR, SI NO, NO SE EJECUTA</p>
<p>El gran cambio respecto a Windows XP, es que se cambia el parámetro IP por IPV4, y se añaden los nombres de los parámetros.</p>
<p>Para asignar una dirección dinámica</p>
<pre class="brush: php; title: ; notranslate">
netsh interface ipv4 set ADDRESS  &quot;Conexion de area local&quot; source=DHCP
netsh interface ipv4 set DNS  &quot;Conexion de area local&quot; source=DHCP
</pre>
<p>Si quereis crear un bat para la conexión wifi, yo recomiendo modificar el nombre de la conexión inalámbrica, y poner un nombre corto como “wireless”.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pesadillo.com/pesadillo/?feed=rss2&#038;p=7764</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nueva tecnica de convertir decimal en hexadecimal con BAT MS-DOS</title>
		<link>http://www.pesadillo.com/pesadillo/?p=5044</link>
		<comments>http://www.pesadillo.com/pesadillo/?p=5044#comments</comments>
		<pubDate>Thu, 16 Jun 2011 23:53:27 +0000</pubDate>
		<dc:creator>pesadillo</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[.BAT]]></category>

		<guid isPermaLink="false">http://www.pesadillo.com/pesadillo/?p=5044</guid>
		<description><![CDATA[Fuente: http://foro.el-hacker.com/f82/f-bat-nueva-ta-cnica-convertir-decimal-hexadecimal-177837/]]></description>
				<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">
:: Hola, he ideado una nueva forma realmente rápida de convertir un número de decimal a hexadecimal usando una variable no documentada llamada =ExitCode

:: Versión final 2.
::Se quitaron carácteres innecesarios.

::Código:

@echo off
:: Llamamos al procedimiento <img src='http://www.pesadillo.com/pesadillo/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ec2Hex enviandole el decimal 10554896 almacenando resiltado en &quot;ret&quot;
call <img src='http://www.pesadillo.com/pesadillo/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ec2Hex 10554896 ret
echo.%ret%
pause
goto :eof
 <img src='http://www.pesadillo.com/pesadillo/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ec2Hex
&quot;%ComSpec%&quot; /d /c exit /b %~1 &gt;nul
for /f &quot;eol=0 delims=0 tokens=*&quot; %%# in (
&quot;%=ExitCode%&quot;) do if not &quot;%%#&quot;==&quot;&quot; (
set %~2=%%#) else (set %~2=0)
goto :eof
</pre>
<p>Fuente: http://foro.el-hacker.com/f82/f-bat-nueva-ta-cnica-convertir-decimal-hexadecimal-177837/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pesadillo.com/pesadillo/?feed=rss2&#038;p=5044</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comandos interesantes de Ms-dOS</title>
		<link>http://www.pesadillo.com/pesadillo/?p=5018</link>
		<comments>http://www.pesadillo.com/pesadillo/?p=5018#comments</comments>
		<pubDate>Thu, 28 Apr 2011 23:39:37 +0000</pubDate>
		<dc:creator>pesadillo</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[.BAT]]></category>

		<guid isPermaLink="false">http://www.pesadillo.com/pesadillo/?p=5018</guid>
		<description><![CDATA[echo (on ó off)&#8212;para poner o quitar mensajes set &#8212; establecer for (in)&#8212;-repite un comando para archivos o directorios goto&#8212;brinca a otra parte de el archivo bat if&#8212;para poner condiciones pause&#8212;detiene la acción y manda un mensaje a pantalla rem&#8211;para insertar comentarios shift&#8211;le resta un uno a los parametros activate&#8211;activa otra ventana beep&#8212;produce un sonido call&#8211;llamar a otro archivo externo [...]]]></description>
				<content:encoded><![CDATA[<p>echo (on ó off)&#8212;para poner o quitar mensajes<br />
set &#8212; establecer<br />
for (in)&#8212;-repite un comando para archivos o directorios<br />
goto&#8212;brinca a otra parte de el archivo bat<br />
if&#8212;para poner condiciones<br />
pause&#8212;detiene la acción y manda un mensaje a pantalla<br />
rem&#8211;para insertar comentarios<br />
shift&#8211;le resta un uno a los <strong>parametros</strong><br />
activate&#8211;activa otra ventana<br />
beep&#8212;produce un sonido<br />
call&#8211;llamar a otro archivo externo tambien .bat<br />
cancel&#8211;termina el proceso entero<br />
cls&#8211;limpia la pantalla<br />
color&#8211;para activar colores<br />
drawbox&#8212;dibuja una caja en la pantalla<br />
drawline&#8212;dibuja lineas verticales en la pantalla<br />
playsound&#8211;toca sonidos de windows<br />
input&#8211;almacena lo escrito en el teclado en variables<br />
gosub&#8211;ejecuta una subrutina<br />
return&#8211;termina una subrutina</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pesadillo.com/pesadillo/?feed=rss2&#038;p=5018</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convertir un número de decimal a hexadecimal (.BAT)</title>
		<link>http://www.pesadillo.com/pesadillo/?p=5045</link>
		<comments>http://www.pesadillo.com/pesadillo/?p=5045#comments</comments>
		<pubDate>Tue, 26 Apr 2011 23:39:34 +0000</pubDate>
		<dc:creator>pesadillo</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[.BAT]]></category>

		<guid isPermaLink="false">http://www.pesadillo.com/pesadillo/?p=5045</guid>
		<description><![CDATA[Hola, he ideado una nueva forma realmente rápida de convertir un número de decimal a hexadecimal usando una variable no documentada llamada =ExitCode Código: Fuente: http://foro.el-hacker.com/f82/f-bat-nueva-ta-cnica-convertir-decimal-hexadecimal-177837/]]></description>
				<content:encoded><![CDATA[<p>Hola, he ideado una nueva forma realmente rápida de convertir un número de decimal a hexadecimal usando una variable no documentada llamada =ExitCode</p>
<p>Código:</p>
<pre class="brush: plain; title: ; notranslate">
@echo off
:: Llamamos al procedimiento <img src='http://www.pesadillo.com/pesadillo/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ec2Hex enviandole el decimal 10554896 almacenando resiltado en &quot;ret&quot;
call <img src='http://www.pesadillo.com/pesadillo/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ec2Hex 10554896 ret
echo.%ret%
pause
goto :eof
 <img src='http://www.pesadillo.com/pesadillo/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ec2Hex
&quot;%ComSpec%&quot; /d /c exit /b %~1 &amp;gt;nul
for /f &quot;eol=0 delims=0 tokens=*&quot; %%# in (
&quot;%=ExitCode%&quot;) do if not &quot;%%#&quot;==&quot;&quot; (
set %~2=%%#) else (set %~2=0)
goto :eof
</pre>
<p>Fuente: http://foro.el-hacker.com/f82/f-bat-nueva-ta-cnica-convertir-decimal-hexadecimal-177837/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pesadillo.com/pesadillo/?feed=rss2&#038;p=5045</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Variable de entorno de Windows.</title>
		<link>http://www.pesadillo.com/pesadillo/?p=5016</link>
		<comments>http://www.pesadillo.com/pesadillo/?p=5016#comments</comments>
		<pubDate>Tue, 19 Apr 2011 23:39:41 +0000</pubDate>
		<dc:creator>pesadillo</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[.BAT]]></category>

		<guid isPermaLink="false">http://www.pesadillo.com/pesadillo/?p=5016</guid>
		<description><![CDATA[Aqui les dejo algunas variables de sistema que se pueden consultar desde la consola CMD y si se requiere modificar las variables se encuentran en propiedades de PC (WindowsXP), para que te puedar dar una idea de como funcionan entra al Boton INICIO/Ejecutar y escribe cmd y le das enter cmd Luego solo escribes el siguiente comando con la variable, [...]]]></description>
				<content:encoded><![CDATA[<p>Aqui les dejo algunas variables de sistema que se pueden consultar desde la consola CMD y si se requiere modificar las variables se encuentran en propiedades de PC (WindowsXP), para que te puedar dar una idea de como funcionan entra al Boton INICIO/Ejecutar y escribe cmd y le das enter</p>
<blockquote><p><code>cmd</code></p></blockquote>
<p>Luego solo escribes el siguiente comando con la variable, la variable debes encerarlo con el simbolo de porcentaje <strong>%variable%</strong> y <strong>echo</strong> te devolvera el valor.</p>
<blockquote><p><code>echo %Windowsversion%</code></p></blockquote>
<pre>ALLUSERSPROFILE
APPDATA
CLIENTNAME
CommonProgramFiles
COMPUTERNAME
ComSpec
EICDDrive
FP_NO_HOST_CHECK
HOMEDRIVE
HOMEPATH
LOGONSERVER
NUMBER_OF_PROCESSORS
OS
Path
PATHEXT
PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
ProgramFiles
SESSIONNAME
SystemDrive
SystemRoot
TEMP
TMP
USERDOMAIN
USERNAME
USERPROFILE
VBOX_INSTALL_PATH
windir
Windows guarda las variables de entorno en la clave de registro: 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.pesadillo.com/pesadillo/?feed=rss2&#038;p=5016</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eliminar viejos controladores del registro.</title>
		<link>http://www.pesadillo.com/pesadillo/?p=877</link>
		<comments>http://www.pesadillo.com/pesadillo/?p=877#comments</comments>
		<pubDate>Thu, 07 Apr 2011 23:50:35 +0000</pubDate>
		<dc:creator>pesadillo</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[.BAT]]></category>

		<guid isPermaLink="false">http://www.pesadillo.com/pesadillo/?p=877</guid>
		<description><![CDATA[Cuando vamos cambiando de hardware, quedarán instalado viejos drivers y controladores que de vez en cuando es conveniente borrar del registro. La pega es que los dispositivos viejos ya no podemos verlos en el Administrador de dispositivos y por tanto no podemos desinstalarlos. (Únicamente hay que tener cuidado con los dispositivos de red&#8230;&#8230;. esos&#8230;. mejor no tocarlos hay que borrar [...]]]></description>
				<content:encoded><![CDATA[<div><span style="font-size: x-small; font-family: Arial;">Cuando vamos cambiando de hardware, quedarán instalado viejos drivers<br />
y controladores que de vez en cuando <strong>es conveniente borrar del registro</strong>. La pega<br />
es que los dispositivos viejos ya no podemos verlos en el Administrador de dispositivos<br />
y por tanto no podemos desinstalarlos.<br />
(<span style="color: #ff3300;">Únicamente hay que tener cuidado con los dispositivos de red&#8230;&#8230;. esos&#8230;. mejor no tocarlos<br />
hay que borrar ÚNICAMENTE dispositivos en gris o difuminados que sepas que TU has instalado.<br />
Nunca los del sistema, o los que haya instalado el propio sistema)</span></span></div>
<div> </div>
<div><span style="font-size: x-small; font-family: Arial;"></span></div>
<p><span style="font-size: x-small; font-family: Arial;"></p>
<div>Para que aparezcan y por tanto poder borrarlos, crea, con el Block de Notas,<br />
  <strong>un archivo bat</strong> ,lo guardáis lo ejecutas (doble clic) llamado por ejemplo:<br />
BorradorDevices.bat  con el contenido:</div>
<div> </div>
<div><strong>@echo off<br />
set devmgr_show_nonpresent_devices=1<br />
cd %SystemRoot%\system32<br />
start devmgmt.msc </strong></div>
<div>lo guardas y lo ejecutas con doble clic.</div>
<p> </p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pesadillo.com/pesadillo/?feed=rss2&#038;p=877</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
