<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>command-line on S Anand</title>
    <link>https://www.s-anand.net/blog/tag/command-line/</link>
    <description>Recent content in command-line on S Anand</description>
    <generator>Hugo -- 0.164.0</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 24 Jan 2010 04:37:24 +0000</lastBuildDate>
    <atom:link href="https://www.s-anand.net/blog/tag/command-line/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Command line alarm</title>
      <link>https://www.s-anand.net/blog/command-line-alarm/</link>
      <pubDate>Sun, 24 Jan 2010 04:37:24 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/command-line-alarm/</guid>
      <description>&lt;p&gt;When I’m in front of my laptop, I usually forget the world around. Sadly, the world around has important things that need to get done on time. Like eating medicines, turning off the washing machine or the hob, etc.&lt;/p&gt;
&lt;p&gt;The one thing I’ve been lacking on my machine was a simple alarm system. I’d like to set an alarm to remind me to do something in 5 minutes, for example. And it should be dead simple to set up.&lt;/p&gt;
&lt;p&gt;After hunting around a fair for freeware to do this, I’ve finally settled on writing this tiny piece of Visual Basic code.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-vb&#34; data-lang=&#34;vb&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;Set&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;WshShell&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;CreateObject&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;WScript.Shell&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;If&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;WScript&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Arguments&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;length&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;2&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;Then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;n&#34;&gt;WScript&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Echo&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;&amp;#34;Usage: alarm &amp;lt;time-in-minutes&amp;gt; &amp;lt;message&amp;gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;Else&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;n&#34;&gt;WScript&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Sleep&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;WScript&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Arguments&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Item&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;*&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;60&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;*&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;1000&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;n&#34;&gt;msg&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;k&#34;&gt;For&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;i&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;1&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;to&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;WScript&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Arguments&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Count&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;n&#34;&gt;msg&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;msg&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;+&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;WScript&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Arguments&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Item&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;i&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;+&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;&amp;#34; &amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;k&#34;&gt;Next&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;n&#34;&gt;WshShell&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Popup&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;msg&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;&amp;#34;Alarm&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;64&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;End&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;If&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I’ve saved this as “alarm.vbs” somewhere in my path. When I need to set an alarm, I just type&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;alarm &lt;span class=&#34;m&#34;&gt;5&lt;/span&gt; Turn off the hob
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This pops up a window in 5 minutes with the alarm:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.s-anand.net/blog/assets/alarm.webp&#34;&gt;&lt;img alt=&#34;An informational popup window saying Turn off the hob&#34; loading=&#34;lazy&#34; src=&#34;https://www.s-anand.net/blog/assets/alarm.webp&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This turned out to be a life-saver yesterday. I had to catch a flight at the Bangalore airport, and traffic is notoriously bad. To be on the safe side, I set up the following:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;alarm &lt;span class=&#34;m&#34;&gt;25&lt;/span&gt; Catch the flight
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;alarm &lt;span class=&#34;m&#34;&gt;30&lt;/span&gt; You really need to go now
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;alarm &lt;span class=&#34;m&#34;&gt;35&lt;/span&gt; You&lt;span class=&#34;err&#34;&gt;&amp;#39;&lt;/span&gt;ve missed the flight
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Turned out to be a wise thing. I ignored the first alarm. On the second, I said “OK, OK, just 1 minute…” and it really took the third alarm to get me going. Just barely made it to the flight.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;comments&#34;&gt;Comments&lt;/h2&gt;
&lt;!-- wp-comments-start --&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;http://abhijitsen.webs.com&#34;&gt;Abhijit Sen&lt;/a&gt;&lt;/strong&gt; &lt;em&gt;10 Feb 2010 12:07 am&lt;/em&gt;:
Anand. is it required to have a VB client to run this VB script?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;408wij&lt;/strong&gt; &lt;em&gt;26 Jan 2010 10:28 pm&lt;/em&gt;:
For us uninformed Americans, hob=stove, right?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sumit Dhar&lt;/strong&gt; &lt;em&gt;25 Jan 2010 1:14 am&lt;/em&gt;:
Hey Anand,
Was it a flight for UK?
If you are gonna be back in Bangalore, let us meet up sometime.
Cheers,
Sumit&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;http://abhijitsen.webs.com&#34;&gt;Abhijit Sen&lt;/a&gt;&lt;/strong&gt; &lt;em&gt;12 Feb 2010 1:45 am&lt;/em&gt;:
Hey Anand. I opened a notepad, copy pasted the above code with the specific number of minutes and message, saved the notepad as Alarm.vbs on my desktop. Nothing happened after the given number of minutes. What am I missing?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;http://www.s-anand.net/&#34;&gt;S Anand&lt;/a&gt;&lt;/strong&gt; &lt;em&gt;29 Jan 2010 8:37 am&lt;/em&gt;:
But isn&amp;rsquo;t an annoyance the whole point of an alarm?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;http://allanup.blogspot.com&#34;&gt;Anup&lt;/a&gt;&lt;/strong&gt; &lt;em&gt;28 Jan 2010 12:35 pm&lt;/em&gt;:
Nice and useful lines.
Any clue for sending the annoying window to background&amp;hellip;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;http://www.s-anand.net/&#34;&gt;S Anand&lt;/a&gt;&lt;/strong&gt; &lt;em&gt;10 Feb 2010 4:49 pm&lt;/em&gt;:
No, not at all. This comes built in with Windows. Absolutely nothing else required.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ravi&lt;/strong&gt; &lt;em&gt;28 Feb 2010 6:26 pm&lt;/em&gt;:
You can use gadgets in Vista for. I searched and found one, free.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ravi&lt;/strong&gt; &lt;em&gt;28 Feb 2010 6:30 pm&lt;/em&gt;:
&lt;a href=&#34;http://www.puttee.de/&#34;&gt;http://www.puttee.de/&lt;/a&gt;
I tried this Anand, works like a charm..&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;http://NA&#34;&gt;Ravi&lt;/a&gt;&lt;/strong&gt; &lt;em&gt;14 Feb 2010 7:11 am&lt;/em&gt;:
@Abhijit - You dont have to specify the minutes and message in the .vbs file. Just save it as it is in a folder. You will have to write the command from the same directory on the DOS Prompt.
The command &amp;ldquo;Alarm x message&amp;rdquo; takes the minutes and the message as the input and displays them when it runs Alarm.vbs
I made this change to the script since I got error in executing the original one.
CHANGED
&amp;ldquo;If WScript.Arguments.length &amp;lt; 2 Then&amp;rdquo;
TO
&amp;ldquo;If WScript.Arguments.length &amp;lt; 2 Then&amp;rdquo;
(Message can only be without spaces with this change)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ramki&lt;/strong&gt; &lt;em&gt;19 Jun 2010 5:01 am&lt;/em&gt;:
I am using WinXP and could not get the script to work with the following line and had to change it as shown below after getting clue from Ravi&amp;rsquo;s comment:
CHANGED
“If WScript.Arguments.length &amp;lt; 2 Then”
TO
“If WScript.Arguments.length &amp;lt; 2 Then”&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- wp-comments-end --&gt;
</description>
    </item>
    <item>
      <title>Launching applications</title>
      <link>https://www.s-anand.net/blog/launching-applications/</link>
      <pubDate>Sat, 02 Aug 2008 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/launching-applications/</guid>
      <description>&lt;p&gt;Opening programs from the Start - All Programs menu is painful. For many years, I relied on the quick launch bar.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.s-anand.net/blog/assets/flickr-quicklaunch_2724573143_o-png.webp&#34; title=&#34;QuickLaunch&#34;&gt;&lt;img alt=&#34;QuickLaunch&#34; loading=&#34;lazy&#34; src=&#34;https://www.s-anand.net/blog/assets/flickr-quicklaunch_2724573143_o-png.webp&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But it&amp;rsquo;s space constrained. There are only so many applications you can place there. I want space enough for frequently used documents as well. Recently, I decided that I need all the space on the screen. So my task bar is on auto hide, and that makes the quick launch bar a little tougher to use as well. And finally, I can&amp;rsquo;t use the quick launch bar with the keyboard. &lt;a href=&#34;https://www.s-anand.net/blog/excel-never-use-the-mouse/&#34;&gt;That&amp;rsquo;s important&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;So I switched to the pinned menus on the Start Menu.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.s-anand.net/blog/assets/flickr-startmenu_2725407500_o-png.webp&#34; title=&#34;StartMenu&#34;&gt;&lt;img alt=&#34;StartMenu&#34; loading=&#34;lazy&#34; src=&#34;https://www.s-anand.net/blog/assets/flickr-startmenu_2725407500_o-png.webp&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This works better with the keyboard. I access Word, I just type the Ctrl-Esc, W. Excel: Ctrl-Esc, E. But I run short of letters soon. I have trouble between Powerpoint and &lt;a href=&#34;http://processing.org/&#34;&gt;processing&lt;/a&gt;, for instance. And I can&amp;rsquo;t store documents.&lt;/p&gt;
&lt;p&gt;I tried &lt;a href=&#34;http://www.humanized.com/enso/launcher/&#34;&gt;Enso Launcher&lt;/a&gt; and &lt;a href=&#34;http://www.launchy.net/&#34;&gt;Launchy&lt;/a&gt;, both of which are great products, but I just can&amp;rsquo;t stand the thought of them hogging up all the memory that they do. Launchy in particular.&lt;/p&gt;
&lt;p&gt;Given that I almost always have one or two command prompts open, I write my own little tool to do the job now. It&amp;rsquo;s a command line launcher I&amp;rsquo;ve written in Perl. I call it &amp;ldquo;o&amp;rdquo;. At the first run, it indexes my hard disk. (Well, not all of it. I&amp;rsquo;ve picked what I need.) Now, if I want to read &lt;strong&gt;Harry Potter and the Deathly Hallows&lt;/strong&gt;, I just type:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&amp;gt; o harry potter hallows
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If I wanted to pick a Harry Potter book, I could:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;l&#34;&gt;&amp;gt; o harry potter&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;D:/Entertainment/Books/Hugo Awards/2001 - J K Rowling - Harry Potter and the Goblet Of Fire.rar&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;D:/Entertainment/Books/J K Rowling.1.Harry Potter and The Sorcerer&amp;#39;s Stone.pdf&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;D:/Entertainment/Books/J K Rowling.2.Harry Potter and The Chamber of Secrets.pdf&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;3&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;D:/Entertainment/Books/J K Rowling.3.Harry Potter and The Prisoner of Azkaban.pdf&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;4&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;D:/Entertainment/Books/J K Rowling.4.Harry Potter and The Goblet of Fire.doc&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;5&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;D:/Entertainment/Books/J K Rowling.5.Harry Potter and the Order of the Phoenix.pdf&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;6&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;D:/Entertainment/Books/J K Rowling.6.Harry Potter and the Half-Blood Prince.pdf&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;7&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;D:/Entertainment/Books/J K Rowling.7.Harry Potter and the Deathly Hallows.pdf&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;8&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;D:/Entertainment/Books/J K Rowling.The Harry Potter Encyclopedia.doc&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;9&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;D:/My Pictures/2005-06 London/2005-07-16 06 Waterstones Oxford Street Harry Potter release.JPG&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;... more&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;&amp;gt; (0-9, q, any word)&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;prince&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;l&#34;&gt;D:/Entertainment/Books/J K Rowling.6.Harry Potter and the Half-Blood Prince.pdf&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The program lists the files matching the words I typed, and lets me filter within that.&lt;/p&gt;
&lt;p&gt;I just wrote this yesterday, and already, I&amp;rsquo;ve used it dozens of times. Here&amp;rsquo;s the &lt;a href=&#34;https://www.s-anand.net/blog/o_pl&#34;&gt;source&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;PS: While I was at it, I downloaded a &lt;a href=&#34;http://search.cpan.org/~cpb/Flickr-Upload/Upload.pm&#34;&gt;Flickr uploader for Perl&lt;/a&gt;. So I can now upload images with the command line. This easily saves me at least 5 minutes per article.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;comments&#34;&gt;Comments&lt;/h2&gt;
&lt;!-- wp-comments-start --&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Karthik A&lt;/strong&gt; &lt;em&gt;2 Aug 2008 12:00 pm&lt;/em&gt;:
Oc here&lt;br&gt;
I got equally bugged long back and wrote a python program called fo (folder opener ;-)&lt;br&gt;
&lt;br&gt;
Here it is - crude but worked pretty well \
&lt;h2 id=&#34;setlocal-enableextensions--python--x-f0---goto-eof-&#34;&gt;@setlocal enableextensions &amp;amp; python -x %~f0 %* &amp;amp; goto :EOF \&lt;/h2&gt;
import os&lt;br&gt;
import ConfigParser&lt;br&gt;
import sys&lt;br&gt;
&lt;br&gt;
CONFIGFILENAME = &amp;ldquo;config.ini&amp;rdquo;&lt;br&gt;
CONFIGFILENAME1 = &amp;ldquo;config1.ini&amp;rdquo;&lt;br&gt;
cleanInp = &amp;lsquo;&amp;rsquo;&lt;br&gt;
scuth = {}&lt;br&gt;
\
&lt;h2 id=&#34;load-all-the-config-file-details-in-a-hash-&#34;&gt;Load all the config file details in a hash \&lt;/h2&gt;
cfgFile = ConfigParser.ConfigParser()&lt;br&gt;
cfgFile.read(CONFIGFILENAME)&lt;br&gt;
cfgFileFP = open(CONFIGFILENAME,&amp;lsquo;r+&amp;rsquo;)&lt;br&gt;
&lt;br&gt;
scuts = cfgFile.items(&amp;ldquo;shortcuts&amp;rdquo;)&lt;br&gt;
&lt;br&gt;
\
&lt;h2 id=&#34;load-into-a-dictionary-&#34;&gt;load into a dictionary \&lt;/h2&gt;
for (x,y) in scuts:&lt;br&gt;
scuth[x]=y&lt;br&gt;
&lt;br&gt;
print &amp;ldquo;&amp;ldquo;&amp;ldquo;Folder and file rapid opener (FO)&lt;br&gt;
&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&lt;br&gt;
Ctrl-Alt-C - to start&lt;br&gt;
@shortcut,path - to add a shortcut&lt;br&gt;
x - exit&lt;br&gt;
&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;mdash;&amp;rdquo;&amp;rdquo;&amp;rdquo;&lt;br&gt;
&lt;br&gt;
while cleanInp != &amp;lsquo;x&amp;rsquo;:&lt;br&gt;
inp = raw_input(&amp;ldquo;Your wish Master!:&amp;rdquo;)&lt;br&gt;
cleanInp = inp.strip()&lt;br&gt;
if cleanInp.find(&amp;rsquo;@&amp;rsquo;) == -1:&lt;br&gt;
try:&lt;br&gt;
os.startfile(scuth[cleanInp])&lt;br&gt;
except:&lt;br&gt;
pass&lt;br&gt;
else:&lt;br&gt;
tmp = cleanInp.split(&amp;quot;@&amp;quot;)[1]&lt;br&gt;
tmp1 = tmp.split(&amp;quot;,&amp;quot;)&lt;br&gt;
cfgFile.set(&amp;ldquo;shortcuts&amp;rdquo;,tmp1[0], tmp1[1])&lt;br&gt;
cfgFile.write(cfgFileFP)&lt;br&gt;
q&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sathish&lt;/strong&gt; &lt;em&gt;2 Aug 2008 12:00 pm&lt;/em&gt;:
Anand,&lt;br&gt;
&lt;br&gt;
Did you try slickrun.. It is extremely slick..&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;S Anand&lt;/strong&gt; &lt;em&gt;2 Aug 2008 12:00 pm&lt;/em&gt;:
@OC: Hey, didn&amp;rsquo;t realise you were into python. Neat!&lt;br&gt;
&lt;br&gt;
@Sathish: How much memory does Slickrun use up? Given some of the apps I&amp;rsquo;m running on my 1GB laptop, I&amp;rsquo;m having to count each byte!&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;oracle&lt;/strong&gt; &lt;em&gt;2 Aug 2008 12:00 pm&lt;/em&gt;:
The method I use:&lt;br&gt;
&lt;br&gt;
enable google desktop by ctrl-ctrl&lt;br&gt;
&lt;br&gt;
in the search bar first few alphabets of the app..invariably it shows me the app i need.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Saurabh&lt;/strong&gt; &lt;em&gt;2 Aug 2008 12:00 pm&lt;/em&gt;:
I used to use Launchy before switching to Mac an year book and have been using QuickSilver since then. Dont use the Apple Spotlight, neither the Google Desktop thing..QS does all the work - launching apps, searching for files and quickly accessing them, a nice article abt a great QS trick (for Mac users) here : &lt;a href=&#34;http://www.43folders.com/2005/06/13/quicksilver-the-comma-trick&#34;&gt;http://www.43folders.com/2005/06/13/quicksilver-the-comma-trick&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
BTW Processing.org seems to be interesting, plan to check it out soon!&lt;br&gt;
&lt;br&gt;
Cheers!&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;S Anand&lt;/strong&gt; &lt;em&gt;11 Aug 2008 5:35 am&lt;/em&gt;:
@Sathish: 7MB is not too bad. Launchy was taking up over 25MB in my case.&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- wp-comments-end --&gt;
</description>
    </item>
    <item>
      <title>Chatting with your computer</title>
      <link>https://www.s-anand.net/blog/chatting-with-your-computer/</link>
      <pubDate>Wed, 18 Sep 2002 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/chatting-with-your-computer/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://www.openp2p.com/pub/a/p2p/2002/01/11/jabber_bots.html&#34;&gt;Chatting with your computer&lt;/a&gt; &amp;ndash; the new way of interacting with your DOS prompt.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Star Wars</title>
      <link>https://www.s-anand.net/blog/star-wars/</link>
      <pubDate>Sat, 02 Mar 2002 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/star-wars/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;telnet://towel.blinkenlights.nl/&#34;&gt;Star Wars&lt;/a&gt; on Telnet. In text. Still worth a look.&lt;/p&gt;
</description>
    </item>
  </channel>
</rss>
