<p>I use <a href="http://www.crockford.com/javascript/jsmin.html" rel="nofollow noreferrer">jsmin</a> to compress my javascript files before uploading them to production.</p>

<p>Since I tend to have one "code-behind" javascript file per page, I wind up doing this a lot.</p>

<p>I installed a Windows Powertoy that adds a context menu item in Windows Explorer, so I can "Open Command Window Here".  When I click that, the command prompt opens up in the right directory.  That saves a little bit of typing.</p>

<p>However, I still have to type something like:</p>

<pre><code>jsmin &lt;script.js&gt; script.min.js
</code></pre>

<p>To get it to work. This is a hassle.</p>

<p>I'd like to create a context menu item that will allow me to right-click on a *.js file and select "jsmin-compress this file." Then jsmin would be invoked, and the original file would be compressed into "original_filename.<b>min</b>.js"</p>

<p>How can I do this?</p>

you could drop a link to a batch script into the user sendto directory.  Something like
```
```
jsmin %1 script.min.js
```
```
which is what I usually do