<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>sysblogd &#187; windows</title>
	<atom:link href="http://sysblogd.wordpress.com/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysblogd.wordpress.com</link>
	<description>syslogd goes web 2.0</description>
	<lastBuildDate>Mon, 05 Oct 2009 09:39:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='sysblogd.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/7654c0f480fc05477de4f711df08b861?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>sysblogd &#187; windows</title>
		<link>http://sysblogd.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sysblogd.wordpress.com/osd.xml" title="sysblogd" />
		<item>
		<title>Howto Extract all Files from Microsoft Installer Files (msi) rather than to Install the Package</title>
		<link>http://sysblogd.wordpress.com/2008/05/10/howto-extract-all-files-from-microsoft-installer-files-msi-rather-than-to-install-the-package/</link>
		<comments>http://sysblogd.wordpress.com/2008/05/10/howto-extract-all-files-from-microsoft-installer-files-msi-rather-than-to-install-the-package/#comments</comments>
		<pubDate>Sat, 10 May 2008 11:15:02 +0000</pubDate>
		<dc:creator>sysblog</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[installer]]></category>
		<category><![CDATA[msi]]></category>

		<guid isPermaLink="false">http://sysblogd.wordpress.com/?p=162</guid>
		<description><![CDATA[All you need is the Windows Installer itself. Hit Win+R (command line dialog) and execute the following line (change file name and target folder, of course):


msiexec /a c:\tmp\MSIFileName.msi /qb TARGETDIR=&#34;c:\tmp\msitmp\&#34;

You&#8217;ll find all files in your target folder.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysblogd.wordpress.com&blog=957587&post=162&subd=sysblogd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>All you need is the Windows Installer itself. Hit Win+R (command line dialog) and execute the following line (change file name and target folder, of course):</p>
<pre class="brush: vb;">

msiexec /a c:\tmp\MSIFileName.msi /qb TARGETDIR=&quot;c:\tmp\msitmp\&quot;
</pre>
<p>You&#8217;ll find all files in your target folder.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sysblogd.wordpress.com/162/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sysblogd.wordpress.com/162/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysblogd.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysblogd.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysblogd.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysblogd.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysblogd.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysblogd.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysblogd.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysblogd.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysblogd.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysblogd.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysblogd.wordpress.com&blog=957587&post=162&subd=sysblogd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sysblogd.wordpress.com/2008/05/10/howto-extract-all-files-from-microsoft-installer-files-msi-rather-than-to-install-the-package/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef81db04482b606bba32f2b9b348a15c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysblog</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Build a Windows XP SP3 Integrated Installation CD</title>
		<link>http://sysblogd.wordpress.com/2008/04/23/how-to-build-a-windows-xp-sp3-integrated-installation-cd/</link>
		<comments>http://sysblogd.wordpress.com/2008/04/23/how-to-build-a-windows-xp-sp3-integrated-installation-cd/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 12:25:30 +0000</pubDate>
		<dc:creator>sysblog</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[integrated installation cd]]></category>
		<category><![CDATA[Slipstreamed Service Pack]]></category>
		<category><![CDATA[sp3]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://sysblogd.wordpress.com/?p=156</guid>
		<description><![CDATA[You need:

Old/original Windows XP installation CD (any of SP0 to SP2 will do even though only those from SP2 are supported officially). Make sure to use build 5512 or above.
Microsoft Windows SP3
unzipper like WinRar, unrar for  Linux / Ubuntu or the like
ISO creator / CD burn program like mkisofs, InfraRecorder, UltraISO, Basero (or others) or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysblogd.wordpress.com&blog=957587&post=156&subd=sysblogd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2>You need:</h2>
<ol>
<li>Old/original Windows XP installation CD (any of SP0 to SP2 will do even though only those from SP2 are supported officially). Make sure to <a href="http://motls.blogspot.com/2008/04/windows-xp-sp3-rtm-download.html">use build 5512 or above</a>.</li>
<li>Microsoft Windows SP3</li>
<li>unzipper like <a href="http://www.winrar.de/">WinRar</a>, unrar for  <a href="http://www.rarlab.com/rar_add.htm">Linux</a> / <a href="http://packages.ubuntu.com/unrar">Ubuntu</a> or the like</li>
<li>ISO creator / CD burn program like <a href="http://www.g-loaded.eu/2007/04/25/how-to-create-a-windows-bootable-cd-with-mkisofs/">mkisofs</a>, <a href="http://infrarecorder.sourceforge.net/">InfraRecorder</a>, <a href="http://www.ezbsystems.com/ultraiso/">UltraISO</a>, <a href="http://www.gnome.org/projects/brasero/">Basero</a> (<a href="http://librenix.com/?inode=10420">or others</a>) or even <a href="http://sharkysoft.com/tutorials/linuxtips/cdcommands/">old school</a></li>
<li>Boot image exctracted using <a href="http://www.nu2.nu/bbie/">BBIE</a> or <a href="http://www.box.net/shared/si8z8gb06y">use this</a> (also see Box.net box below)</li>
<li>~ 1 GB free tmp space on disk</li>
</ol>
<h2>You do:</h2>
<ol>
<li><strong>Extract </strong>/ copy old <strong>Windows CD</strong>&#8217;s content (including hidden files!) to one folder (e.g. <code>c:\XPCD</code>)</li>
<li><strong>extract SP3</strong>&#8217;s content to another folder (e.g. <code>c:\XPSP3</code>) using e.g. unrar, winrar or hit Win+R and type
<pre class="brush: vb;">
c:\XPSP3\windowsxp-kb936929-sp3-x86-enu.exe –x
</pre>
<p>and select target folder, here <code>c:\XPSP3</code></li>
<li>To <strong>slipstream</strong> the old CD do Win+R and copy+paste or type
<pre class="brush: vb;">
c:\XPSP3\i386\update\update.exe /integrate:c:\XPCD
</pre>
</li>
<li><strong>Create </strong>bootable CD image or <strong>CD </strong>using the boot image and your updated folder <code>c:\XPCD</code>. I recommend using mkisofs (Windows or Linux executable) using
<pre class="brush: vb;">
mkisofs \
    -b cdboot/msboot.img -no-emul-boot -boot-load-seg 1984 -boot-load-size 4 \
    -iso-level 2 -J -l -D -N -joliet-long -relaxed-filenames \
    -V &quot;WINSP&quot; \
    -o ../winsp.iso .
</pre>
<p>from within the root folder of the CD to be, i.e. <code>c:\XPCD</code>. You need to extract the El Torito image first. Create a new folder there and drop your boot image, i.e. <code>cdboot/msboot.img</code>. This can be done under Linux for example using <code>geteltorito /dev/scd0 &gt; cdboot/msboot.img</code> (or use <a href="http://www.nu2.nu/bbie/">BBIE</a> or <a href="http://www.smart-projects.net/isobuster/">IsoBuster</a> in Windows or Wine).</li>
<li><strong>Done</strong>.</li>
</ol>
<p>You might want to try booting from the image using <a href="http://www.virtualbox.org/">VirtualBox</a>.</p>
<h2>Resources:</h2>
<ul>
<li><a href="http://apcmag.com/how_to_create_a_bootable_xp_sp3_cd.htm">apcmag.com</a></li>
<li><a href="http://www.g-loaded.eu/2007/04/25/how-to-create-a-windows-bootable-cd-with-mkisofs/">How to create a Windows bootable CD with mkisofs</a></li>
<li><a href="http://support.microsoft.com/kb/262841">Command-line switches for Windows software update packages</a></li>
<li><a href="http://motls.blogspot.com/2008/04/windows-xp-sp3-rtm-download.html">Windows XP SP3 final (5512) download</a></li>
<li><a href="http://www.alleluia.ch/systeme-dexploitation/windows/integration-sp-linux">Slipstream using Linux</a></li>
<li><a href="http://linuxtuneup.blogspot.com/2006/01/slipstreaming-windows-cd-under-linux.html">Slipstreaming Windows CD under Linux</a> on Linux tune-up</li>
<li><a href="http://jeremy.visser.name/2008/07/12/slipstreaming-windows-xp-with-service-pack-3-in-linux/">Slipstreaming Windows XP with Service Pack 3 in Linux</a> from Jeremy Visser</li>
</ul>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:570px;width:1px;height:1px;">/dev/scd0 &gt; {in-dir}/boot.bin</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sysblogd.wordpress.com/156/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sysblogd.wordpress.com/156/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysblogd.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysblogd.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysblogd.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysblogd.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysblogd.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysblogd.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysblogd.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysblogd.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysblogd.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysblogd.wordpress.com/156/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysblogd.wordpress.com&blog=957587&post=156&subd=sysblogd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sysblogd.wordpress.com/2008/04/23/how-to-build-a-windows-xp-sp3-integrated-installation-cd/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef81db04482b606bba32f2b9b348a15c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysblog</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu: Connect to your Windows machine securely using VNC and SSH with little installation</title>
		<link>http://sysblogd.wordpress.com/2008/01/07/ubuntu-connect-to-your-windows-machine-securely-using-vnc-and-ssh-with-little-installation/</link>
		<comments>http://sysblogd.wordpress.com/2008/01/07/ubuntu-connect-to-your-windows-machine-securely-using-vnc-and-ssh-with-little-installation/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 18:21:05 +0000</pubDate>
		<dc:creator>sysblog</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[remote access]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vnc]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://sysblogd.wordpress.com/2008/01/07/ubuntu-connect-to-your-windows-machine-securely-using-vnc-and-ssh-with-little-installation/</guid>
		<description><![CDATA[This will show what needs to be set-up and installed to use a secure line from a Linux box (eg. Ubuntu) to a Windows box via SSH-tunneled VNC but without the load of Cygwin installed on Windows. I used the nicely small package SSHWindows.
SSH server for Windows (on Windows machine)

Download SSHWindows and run the installer. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysblogd.wordpress.com&blog=957587&post=103&subd=sysblogd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This will show what needs to be set-up and installed to use a secure line from a Linux box (eg. Ubuntu) to a Windows box via SSH-tunneled VNC but without the load of Cygwin installed on Windows. I used the nicely small package <a href="http://sshwindows.sourceforge.net/">SSHWindows</a>.</p>
<h3>SSH server for Windows (on Windows machine)</h3>
<ol>
<li>Download <a href="http://sourceforge.net/project/showfiles.php?group_id=103886&amp;package_id=111688">SSHWindows</a> and run the installer. An alternative could be <a href="http://www.bitvise.com/winsshd">WinSSHD</a> from bitvise. It&#8217;s 30 days trail and closed, though. You&#8217;ll be prompted with the warning to edit the passwd file. Read <code>quickinstall.txt</code> or <code>readme.txt</code> for more details located in the install folder for <code>%PROGRAMFILES%\OpenSSH\docs</code> (hit WIN-KEY+R and copy&amp;paste the path there for quick access).</li>
<li>From a prompt cd to <code>%PROGRAMFILES%\OpenSSH\bin</code>. (WIN+R and type <code>cmd</code>, hit ENTER, <code>c:</code> ENTER, <code>cd %PROGRAMFILES%\OpenSSH\bin</code>)</li>
<li>Run the following (replace <code>&lt;username&gt;</code> with the Windows username that should log in from Ubuntu):<br />
<code>mkgroup -l &gt;&gt; ..\etc\group</code><br />
<code>mkpasswd -l -u &lt;username&gt; &gt;&gt; ..\etc\passwd</code></li>
<li>Start opensshd as Windows service:<br />
<code>net start opensshd</code></li>
<li>Open incoming port in Windows firewall:<br />
<code>netsh firewall add portopening TCP 22 "OpenSSHd"</code><br />
The &#8220;OpenSSHd&#8221; bit can be chosen individually; it&#8217;s only a string to identify this entry.</li>
<li>Test login locally with eg. PuTTY and than test it from the Linux box (<code>ssh winuser@winip</code>). You might need to do some firewall (Windows and/or iptable) config. If your Linux box has to go through some kind of router/firewall machine you&#8217;ll most likely have to add port forwarding on that firewall to pass port 22 (SSH port) to the windows machine&#8217;s IP.</li>
</ol>
<h3>Install TightVNC (on Windows machine):</h3>
<ol>
<li>Don&#8217;t forgett to click the options to setup VNCServer as Windows service and start it after installation.</li>
<li>Open TCP port 5900 temporarily for testing like for opensshd:<br />
<code>netsh firewall add portopening TCP 5900 "VNCincoming"</code></li>
<li>Test it from Ubuntu with <code>vncviewer &lt;windows-machine-ip&gt;</code></li>
<li>If it works close the port in Windows firewall. You won&#8217;t need that hole any longer:<br />
<code>netsh firewall delete portopening TCP 5900</code></li>
</ol>
<ul>
<li>Configure tunneling VNC through SSH (on Linux box):</li>
</ul>
<ol>
<li><code>ssh -L &lt;local port&gt;:&lt;remote computer&gt;:&lt;remote port&gt; &lt;user&gt;@&lt;remote ip&gt;</code> and <code>vncviewer 127.0.0.1</code></li>
<li>Test vnc connection again using -via option: <code>vncviewer -via user@host localhost:0</code></li>
</ol>
<ul>
<li>Use compression in ssh?</li>
<li>GNOME applet/shell skript?</li>
</ul>
<p>References:</p>
<ul>
<li><a href="http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_Run_a_Windows_machine_from_Ubuntu_securely_using_VNC">Ubuntu guide</a> to set up Ubuntu and Windows using Cygwin</li>
<li><a href="http://members.shaw.ca/nicholas.fong/vnc/">Tunnel VNC through SSH</a></li>
<li><a href="http://sshwindows.sourceforge.net/">SSHWindows</a></li>
<li><a href="http://www.tightvnc.com/">TightVNC</a> (VNC Server for Windows) with their <a href="http://www.tightvnc.com/winst.html">Win32-Documentation</a></li>
<li><a href="http://ubuntu-tutorials.com/2007/06/12/vnc-over-ssh-securing-the-remote-desktop/">VNC over SSH : securing the remote desktop</a></li>
<li><a href="http://streetjesus.blogspot.com/2005/07/tech-command-line-manipulation-of.html">Command Line Manipulation of Windows XP SP2 Firewall</a></li>
<li><a href="http://www.ift.uib.no/IT/howto/remote_desktop/vnc.html">Information on the vncviewer -via option</a></li>
<li><a href="http://www.revsys.com/writings/quicktips/ssh-tunnel.html">SSH Tunneling Made Easy</a></li>
<li><a href="http://www.linuxplanet.com/linuxplanet/tutorials/6155/1/">Using VNC Tunneling over SSH</a></li>
</ul>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sysblogd.wordpress.com/103/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sysblogd.wordpress.com/103/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysblogd.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysblogd.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysblogd.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysblogd.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysblogd.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysblogd.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysblogd.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysblogd.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysblogd.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysblogd.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysblogd.wordpress.com&blog=957587&post=103&subd=sysblogd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sysblogd.wordpress.com/2008/01/07/ubuntu-connect-to-your-windows-machine-securely-using-vnc-and-ssh-with-little-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef81db04482b606bba32f2b9b348a15c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysblog</media:title>
		</media:content>
	</item>
		<item>
		<title>Resizing Digital Pictures Made Easy</title>
		<link>http://sysblogd.wordpress.com/2007/05/04/resizing-digital-pictures-made-easy/</link>
		<comments>http://sysblogd.wordpress.com/2007/05/04/resizing-digital-pictures-made-easy/#comments</comments>
		<pubDate>Fri, 04 May 2007 12:54:18 +0000</pubDate>
		<dc:creator>sysblog</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[GIMP]]></category>
		<category><![CDATA[image processing]]></category>
		<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[webdesigne]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://sysblogd.wordpress.com/2007/05/04/resizing-digital-pictures-made-easy/</guid>
		<description><![CDATA[One might think it&#8217;s not that much of a task to resize a bunch of files in one directory so a certain dimention. Say you want to have all jpg images in your directory have width 1024 with aspect ratio maintained. For one image using GIMP actually this is easy. Just open it, go to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysblogd.wordpress.com&blog=957587&post=42&subd=sysblogd&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One might think it&#8217;s not that much of a task to resize a bunch of files in one directory so a certain dimention. Say you want to have all jpg images in your directory have width 1024 with aspect ratio maintained. For one image using <a href="http://www.gimp.org/">GIMP</a> actually this is easy. Just open it, go to image &gt; scale image and type &#8220;1024&#8243; for width. That&#8217;s it. Knowing of <a href="http://www.gimp.org/tutorials/Basic_Batch/">GIMP&#8217;s batch mode feature</a> I though: Well, now let&#8217;s just do this very same thing in batch mode for multiple files. Googling I found this passage <a href="http://adrian.gimp.org/batch/batch-7.html#ss7.3">Adrian Likins GIMP Batch How-To</a>:</p>
<blockquote><p>Batch mode is slow. Its not really a practical replacement for tools like ImageMagick or NetPBM when it comes to large scale image conversions or similar. At least not without writing some very clever scripts.<br />
The problem with this approach is that gimp/script-fu has no built in procedures to iiterate though a list of images. So you cant easily tell gimp to load up *.jpg and run predator.scm on them, at least not without it taking a _long_ time.</p></blockquote>
<p>There&#8217;s the solution, I thought. So I <a href="http://www.mobilefish.com/developer/imagemagick/imagemagick.html">installed ImageMagick for Windows</a> and made myself ready to run a Windows batch <tt>for</tt> loop on the files. After double checking against <a href="http://www.imagemagick.org/script/command-line-options.php#resize">ImageMagick&#8217;s delivered help</a> for <tt>convert</tt> I knew the syntax:</p>
<pre class="brush: vb;">
convert  -resize 1024</pre>
<p>So far so good. But now comes the Windows batch bit. Even though fairly powerfull even compared with bash or other mighty script languages on Linux I couldn&#8217;t figure out how to run more than one command per iteration step. This is what I came around to, which does what intended, but without a <em>pretty</em> notice to the user that could have been done with adding something like <tt> ; @echo %i</tt></p>
<pre class="brush: vb;">
for /f %i in ('dir /b *.jpg') do convert %i -resize 50% %i</pre>
<p>Note that I chose to halve the pics rather than to hard-set the width so I don&#8217;t risk upright pictures to become bigger in file size than the original. There you go!</p>
<p>Update: I finally came around to do it with Linux. Here is the Bash equivalent to the above (plus an additional nice notification which is easy with Bash):</p>
<pre class="brush: vb;">
for i in *.jpg; do echo &quot;converting \&quot;$i\&quot;...&quot;; convert &quot;$i&quot; -resize 50% &quot;$i&quot;; done</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sysblogd.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sysblogd.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysblogd.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysblogd.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysblogd.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysblogd.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysblogd.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysblogd.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysblogd.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysblogd.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysblogd.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysblogd.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysblogd.wordpress.com&blog=957587&post=42&subd=sysblogd&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sysblogd.wordpress.com/2007/05/04/resizing-digital-pictures-made-easy/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef81db04482b606bba32f2b9b348a15c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sysblog</media:title>
		</media:content>
	</item>
	</channel>
</rss>