<?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: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-4434406809325399893</id><updated>2011-04-22T00:49:57.941+03:00</updated><category term='Python'/><category term='Debugging'/><category term='Scripting'/><category term='Batch'/><category term='Work'/><category term='Help'/><category term='Development'/><category term='Publishing'/><category term='SQL'/><category term='HTA'/><title type='text'>Geekly Transparent</title><subtitle type='html'>My Techie World.. see it, don't miss it</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://geeklytransparent.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://geeklytransparent.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Transparently</name><uri>http://www.blogger.com/profile/02846121403112996844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_mLLJEU4hAvc/RgX_mZIy5OI/AAAAAAAAABw/vz555sZ_6A8/s400/rainy.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4434406809325399893.post-7430352933252315619</id><published>2007-04-30T10:17:00.000+03:00</published><updated>2007-04-30T10:27:31.561+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Development'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>Python: unknown Encoding</title><content type='html'>I nearly pulled my hair out while trying to find the solution for this error:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;LookupError: unknown encoding: cp720&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;FROM this following code fragment:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;    print "Name: ", objItem.Name&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;It was obvious, since my Windows System is an Arabic locale, with English default text, that I was surly to have some kind of problem. &lt;br /&gt;&lt;br /&gt;I managed to find a lot of information regarding codecs, encoding, local, setlocale, etc. However, I managed to get it solved by using the &lt;code&gt;str()&lt;/code&gt; function!&lt;br /&gt;&lt;br /&gt;&lt;code&gt;    print "Name: ", str(objItem.Name)&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Voi la..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4434406809325399893-7430352933252315619?l=geeklytransparent.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geeklytransparent.blogspot.com/feeds/7430352933252315619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4434406809325399893&amp;postID=7430352933252315619' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/7430352933252315619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/7430352933252315619'/><link rel='alternate' type='text/html' href='http://geeklytransparent.blogspot.com/2007/04/python-unknown-encoding.html' title='Python: unknown Encoding'/><author><name>Transparently</name><uri>http://www.blogger.com/profile/02846121403112996844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_mLLJEU4hAvc/RgX_mZIy5OI/AAAAAAAAABw/vz555sZ_6A8/s400/rainy.png'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4434406809325399893.post-2115155239843676314</id><published>2007-04-30T09:35:00.000+03:00</published><updated>2007-04-30T09:53:21.359+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Batch'/><category scheme='http://www.blogger.com/atom/ns#' term='Help'/><title type='text'>Windows Grep Functionality</title><content type='html'>Windows has a &lt;code&gt;find&lt;/code&gt; command which can be used in batch files and in the cmd prompt to search for strings in files or in output. My most recent discoveries is the &lt;code&gt;type&lt;/code&gt; command and using &lt;code&gt;find&lt;/code&gt; in a &lt;code&gt;grep&lt;/code&gt; like functionality.&lt;br /&gt;&lt;br /&gt;Say you have a text file with lines of code/numbers/names/etc and you'd like to see the line which has the text you are looking for. You'd type the following:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&gt; type file.txt | find /I "something"&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Replace &lt;em&gt;file.txt&lt;/em&gt; with the filename you want to search in, and &lt;em&gt;something&lt;/em&gt; with the text you are looking for.&lt;br /&gt;&lt;br /&gt;The &lt;code&gt;/I &lt;/code&gt; switch is to make the search case insensitive. Type &lt;code&gt;find /?&lt;/code&gt; at the command prompt for more options.&lt;br /&gt;&lt;br /&gt;Here is an example. If you want to find out if your python bin directory is in your path you would type:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&gt; SET | find /I "python"&lt;/code&gt;&lt;br /&gt;results:&lt;br /&gt;&lt;code&gt;Path=C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Common Files\GTK\2.0\bin;C:\bin;C:\Python24;C:\Program Files\Windows Script Encoder;C:\Program Files\7-Zip&lt;/code&gt;&lt;br /&gt;&lt;em&gt;Note: The &lt;code&gt;SET&lt;/code&gt; command prints out your environment variables. Much like &lt;code&gt;env&lt;/code&gt; does on *ix.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Follow here, for more &lt;a href="http://labnol.blogspot.com/2006/04/useful-windows-xp-dos-commands-tricks.html"&gt;Useful Windows command prompt commands&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4434406809325399893-2115155239843676314?l=geeklytransparent.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geeklytransparent.blogspot.com/feeds/2115155239843676314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4434406809325399893&amp;postID=2115155239843676314' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/2115155239843676314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/2115155239843676314'/><link rel='alternate' type='text/html' href='http://geeklytransparent.blogspot.com/2007/04/windows-grep-functionality.html' title='Windows Grep Functionality'/><author><name>Transparently</name><uri>http://www.blogger.com/profile/02846121403112996844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_mLLJEU4hAvc/RgX_mZIy5OI/AAAAAAAAABw/vz555sZ_6A8/s400/rainy.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4434406809325399893.post-2806131675345974088</id><published>2007-04-23T10:59:00.000+03:00</published><updated>2007-04-23T11:01:44.284+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Development'/><title type='text'>Revelation</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;"The uglier the code, the prettier the program."&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;- Transparently&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4434406809325399893-2806131675345974088?l=geeklytransparent.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geeklytransparent.blogspot.com/feeds/2806131675345974088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4434406809325399893&amp;postID=2806131675345974088' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/2806131675345974088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/2806131675345974088'/><link rel='alternate' type='text/html' href='http://geeklytransparent.blogspot.com/2007/04/revelation.html' title='Revelation'/><author><name>Transparently</name><uri>http://www.blogger.com/profile/02846121403112996844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_mLLJEU4hAvc/RgX_mZIy5OI/AAAAAAAAABw/vz555sZ_6A8/s400/rainy.png'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4434406809325399893.post-8039691264336887723</id><published>2007-04-20T15:18:00.000+03:00</published><updated>2007-04-20T15:41:00.400+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Scripting'/><title type='text'>Renaming Script</title><content type='html'>I have a ton of mp3 files in different folders which are in the format below;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Track # - Song Name (Artist Name).mp3&lt;br /&gt;ex. 01 - La Fille De Pekin (Frederick Rousseau).mp3&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I wanted to rename all the files so I could import them easily using the following format;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Track # - Artist Name - Song Name.mp3&lt;br /&gt;ex. 01 - Frederick Rousseau - La Fille De Pekin.mp3&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;This format helps me to adjust the meta data while importing. I wrote the following VBScript to rename the files in a directory :D&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Option Explicit&lt;br /&gt;On Error Resume Next&lt;br /&gt;&lt;br /&gt;Dim a: a = WScript.Arguments.item(0)&lt;br /&gt;Dim fso: Set fso=CreateObject("Scripting.FileSystemObject")&lt;br /&gt;Dim lFolder: Set lFolder = fso.GetFolder(a)&lt;br /&gt;Dim lFiles: Set lFiles = lFolder.Files&lt;br /&gt;Dim lFile, numFiles&lt;br /&gt;numFiles = 0&lt;br /&gt;For each lFile in lFiles&lt;br /&gt;  RenameFile(lFile)&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;Function RenameFile(fileObject)&lt;br /&gt;  Dim oldName, newName, fullnewName&lt;br /&gt;  Dim posDash, posParOpen, posParClose&lt;br /&gt;  Dim artistName, songName, trackNum&lt;br /&gt;&lt;br /&gt;  oldName = fileObject.Name&lt;br /&gt;  'get location of the dash&lt;br /&gt;  posDash = InStr(oldName, "-")&lt;br /&gt;  'get location of the first (&lt;br /&gt;  posParOpen = InStrRev(oldName,"(")&lt;br /&gt;  'get location of last )&lt;br /&gt;  posParClose = InStrRev(oldName, ")")&lt;br /&gt;&lt;br /&gt;  'get the track number&lt;br /&gt;  trackNum = Mid(oldName,1,posDash)&lt;br /&gt;  trackNum = Replace(trackNum,"-","")&lt;br /&gt;  trackNum = trim(trackNum)&lt;br /&gt;&lt;br /&gt;  'get the song name&lt;br /&gt;  songName = Mid(oldName,posDash,Cint(posParOpen - PosDash))&lt;br /&gt;  songName = Replace(songName,"-","")&lt;br /&gt;  songName = Trim(songName)&lt;br /&gt;&lt;br /&gt;  'get the artist name&lt;br /&gt;  artistName = Mid(oldName,posParOpen,Cint(posParClose - PosParOpen))&lt;br /&gt;  artistName = Replace(artistName,"(","")&lt;br /&gt;  artistName = Trim(artistName)&lt;br /&gt;&lt;br /&gt;  'new name formatted&lt;br /&gt;  newName = trackNum &amp; " - " &amp;amp; artistName &amp; " - " &amp;amp; songName &amp; ".mp3"&lt;br /&gt;  fullNewName = fileObject.ParentFolder &amp;amp; "\" &amp; newName&lt;br /&gt;&lt;br /&gt;  WSCript.Echo&lt;br /&gt;  WScript.Echo "Renaming.. " &amp;amp; fileObject.Name&lt;br /&gt;  WScript.Echo "To........ " &amp; newName&lt;br /&gt;&lt;/code&gt;&lt;code&gt;    'comment the following line to test it only.&lt;/code&gt;&lt;br /&gt;&lt;code&gt;    fileObject.Move fullNewName&lt;br /&gt;  WScript.Echo&lt;br /&gt;  numFiles = numFiles + 1&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;WScript.Echo "Total Files Modified: " &amp;amp; numFiles&lt;br /&gt;Set fso = Nothing&lt;br /&gt;Set lFolder = Nothing&lt;br /&gt;Set lFiles = Nothing&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;All you have to do to use it is copy paste into a vbs file "reformat.vbs" for example. Then run it using the command line:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;C:\&gt; cscript reformat.vbs "C:\Music\Some Messed up Album\"&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Here is a link to the script, if you wish to download it. Just rename the file.&lt;br /&gt;Link: &lt;a href="http://blueic.googlepages.com/reformat.txt"&gt;Reformat.txt&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4434406809325399893-8039691264336887723?l=geeklytransparent.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geeklytransparent.blogspot.com/feeds/8039691264336887723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4434406809325399893&amp;postID=8039691264336887723' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/8039691264336887723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/8039691264336887723'/><link rel='alternate' type='text/html' href='http://geeklytransparent.blogspot.com/2007/04/renaming-script.html' title='Renaming Script'/><author><name>Transparently</name><uri>http://www.blogger.com/profile/02846121403112996844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_mLLJEU4hAvc/RgX_mZIy5OI/AAAAAAAAABw/vz555sZ_6A8/s400/rainy.png'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4434406809325399893.post-4965775585230883147</id><published>2007-04-19T09:34:00.000+03:00</published><updated>2007-04-19T09:36:05.672+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Work'/><title type='text'>Thursday Work</title><content type='html'>I don't usually work on thursdays. Today however is an exception. I'm doing critical work, kind of confidential. So if I tell you, I'll have to kill you :p&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4434406809325399893-4965775585230883147?l=geeklytransparent.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geeklytransparent.blogspot.com/feeds/4965775585230883147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4434406809325399893&amp;postID=4965775585230883147' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/4965775585230883147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/4965775585230883147'/><link rel='alternate' type='text/html' href='http://geeklytransparent.blogspot.com/2007/04/thursday-work.html' title='Thursday Work'/><author><name>Transparently</name><uri>http://www.blogger.com/profile/02846121403112996844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_mLLJEU4hAvc/RgX_mZIy5OI/AAAAAAAAABw/vz555sZ_6A8/s400/rainy.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4434406809325399893.post-1973012926664689509</id><published>2007-04-18T09:15:00.000+03:00</published><updated>2007-04-18T09:26:33.078+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Work'/><category scheme='http://www.blogger.com/atom/ns#' term='Debugging'/><title type='text'>Automation Frustration</title><content type='html'>When I mention computers, how do you feel? I bet you feel a chill, a little frustration, maybe a little confusion as well. It turns out my Automation of the Patch scanning software does not save the report correctly. Now its time to fix this problem and figure out what is going on. Another obstacle is that it is automated to run way early in the AM, after that follows a script which formats the output. I'll need to find a way to timestamp the date on the XML file to figure out if it is the most recent report or simply an outdated copy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4434406809325399893-1973012926664689509?l=geeklytransparent.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geeklytransparent.blogspot.com/feeds/1973012926664689509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4434406809325399893&amp;postID=1973012926664689509' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/1973012926664689509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/1973012926664689509'/><link rel='alternate' type='text/html' href='http://geeklytransparent.blogspot.com/2007/04/automation-frustration.html' title='Automation Frustration'/><author><name>Transparently</name><uri>http://www.blogger.com/profile/02846121403112996844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_mLLJEU4hAvc/RgX_mZIy5OI/AAAAAAAAABw/vz555sZ_6A8/s400/rainy.png'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4434406809325399893.post-5110239084944265063</id><published>2007-04-15T07:15:00.000+03:00</published><updated>2007-04-15T07:21:30.818+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Publishing'/><category scheme='http://www.blogger.com/atom/ns#' term='Batch'/><category scheme='http://www.blogger.com/atom/ns#' term='Work'/><title type='text'>Publishing Hiccup</title><content type='html'>To my surprise I logged in this morning to check on my application since I scheduled it to run a little after midnight. I found out it ran, but nothing happened! I went through the batch file, only to find my debug code on.. (the echo before cscript command) *sigh* Its good I arrived to work early. I re-ran the applications. Which are proving to be quite hefty on the system but definitly worth the overhead.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4434406809325399893-5110239084944265063?l=geeklytransparent.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geeklytransparent.blogspot.com/feeds/5110239084944265063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4434406809325399893&amp;postID=5110239084944265063' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/5110239084944265063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/5110239084944265063'/><link rel='alternate' type='text/html' href='http://geeklytransparent.blogspot.com/2007/04/publishing-hiccup.html' title='Publishing Hiccup'/><author><name>Transparently</name><uri>http://www.blogger.com/profile/02846121403112996844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_mLLJEU4hAvc/RgX_mZIy5OI/AAAAAAAAABw/vz555sZ_6A8/s400/rainy.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4434406809325399893.post-1084690304160502435</id><published>2007-04-14T12:27:00.000+03:00</published><updated>2007-04-14T12:43:25.041+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Publishing'/><category scheme='http://www.blogger.com/atom/ns#' term='Development'/><category scheme='http://www.blogger.com/atom/ns#' term='Work'/><title type='text'>Publishing My app: Part II</title><content type='html'>I've cleaned up most of my application. Created a new batch file to test the path of the VBS files and added an argument checked so all I'd need to do is type "runmod.bat 1" and end up running the Defragmentation check on all of our servers.&lt;br /&gt;&lt;br /&gt;It was important to be delicate about this issue. I wouldn't want to run it by mistake, and risk stressing the servers during working hours. I created 5 schedules (1 for each module) to run during the early AM.&lt;br /&gt;&lt;br /&gt;One of the Modules is a Windows Patch Version check. It transforms an exported XML from &lt;a href="http://www.gfi.com/lannetscan/"&gt;LANGuard Security Scanner&lt;/a&gt; to a generic XML file. I then have a small script called create_xsl.vbs which reads variables from a config file and creates an XSL file with the relevant information using a template. Sounds pretty tiresome but it works great since now I can write a VBS module file, a config file.. and easily add it to the HTA application without worrying about encoding or re-coding any of the core application.&lt;br /&gt;&lt;br /&gt;Related Post: &lt;a href="http://geeklytransparent.blogspot.com/2007/04/publishing-my-app.html"&gt;Publishing My App Part I&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4434406809325399893-1084690304160502435?l=geeklytransparent.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geeklytransparent.blogspot.com/feeds/1084690304160502435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4434406809325399893&amp;postID=1084690304160502435' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/1084690304160502435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/1084690304160502435'/><link rel='alternate' type='text/html' href='http://geeklytransparent.blogspot.com/2007/04/publishing-my-app-part-ii.html' title='Publishing My app: Part II'/><author><name>Transparently</name><uri>http://www.blogger.com/profile/02846121403112996844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_mLLJEU4hAvc/RgX_mZIy5OI/AAAAAAAAABw/vz555sZ_6A8/s400/rainy.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4434406809325399893.post-7983578593987503954</id><published>2007-04-11T10:20:00.000+03:00</published><updated>2007-04-11T10:29:46.862+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Batch'/><category scheme='http://www.blogger.com/atom/ns#' term='Scripting'/><category scheme='http://www.blogger.com/atom/ns#' term='Help'/><title type='text'>Multi Variable Batch</title><content type='html'>This is a great example for reading lines through a regular batch file and processing the input at tokens.&lt;br /&gt;&lt;br /&gt;Lets say for example you have a file with the following input:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;user1      homedir1&lt;br /&gt;user1      homedir2&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;etc&lt;br /&gt;&lt;br /&gt;If you want to, you could add this to your batch file;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;for /f "tokens=1*" %%i in (filename.txt) do @echo %%j\%%i&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Notice that %%j was not defined, but is automatically assigned a value alphabetically. The output will look something like;&lt;br /&gt;&lt;br /&gt;homedir1\user1&lt;br /&gt;homedir2\user2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4434406809325399893-7983578593987503954?l=geeklytransparent.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geeklytransparent.blogspot.com/feeds/7983578593987503954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4434406809325399893&amp;postID=7983578593987503954' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/7983578593987503954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/7983578593987503954'/><link rel='alternate' type='text/html' href='http://geeklytransparent.blogspot.com/2007/04/multi-variable-batch.html' title='Multi Variable Batch'/><author><name>Transparently</name><uri>http://www.blogger.com/profile/02846121403112996844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_mLLJEU4hAvc/RgX_mZIy5OI/AAAAAAAAABw/vz555sZ_6A8/s400/rainy.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4434406809325399893.post-6020922239464706995</id><published>2007-04-11T08:08:00.000+03:00</published><updated>2007-04-11T08:30:07.303+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Work'/><category scheme='http://www.blogger.com/atom/ns#' term='HTA'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Publishing My app</title><content type='html'>So my boss has suggested I start a tech blog about what I really do. So here it is. I'll start it with my task for the day.&lt;br /&gt;&lt;br /&gt;I've created this massive &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;HTA&lt;/span&gt; application to &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_1"&gt;monitor&lt;/span&gt; our servers and produce pretty XML data for easy &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_2"&gt;adaptability&lt;/span&gt;. It is mostly complete, now I have to move it to the main station to get it working without any glitches (especially those path errors.. *shivers*).&lt;br /&gt;&lt;br /&gt;~&lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_3"&gt;Interrupted&lt;/span&gt;~&lt;br /&gt;&lt;br /&gt;&lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_4"&gt;OK&lt;/span&gt;, now I have to work on some &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;SQL&lt;/span&gt; statements.. sigh.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4434406809325399893-6020922239464706995?l=geeklytransparent.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geeklytransparent.blogspot.com/feeds/6020922239464706995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4434406809325399893&amp;postID=6020922239464706995' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/6020922239464706995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4434406809325399893/posts/default/6020922239464706995'/><link rel='alternate' type='text/html' href='http://geeklytransparent.blogspot.com/2007/04/publishing-my-app.html' title='Publishing My app'/><author><name>Transparently</name><uri>http://www.blogger.com/profile/02846121403112996844</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_mLLJEU4hAvc/RgX_mZIy5OI/AAAAAAAAABw/vz555sZ_6A8/s400/rainy.png'/></author><thr:total>0</thr:total></entry></feed>
