Showing posts with label ShellExtension. Show all posts
Showing posts with label ShellExtension. Show all posts

Thursday, November 20, 2014

Windows "Command Prompt Here" Generator - Now with VS2015 Support

Travis Illig - VS2015 Command Prompt Here

If you're a user of those right-click "Command Prompt Here" context menu utilities... I just updated my Command Prompt Here Generator with a developer prompt for Visual Studio 2015. Head over there to get an installer for "VS2015 Prompt Here" (or any other prompts you might be interested in).

Windows "Command Prompt Here" Generator

This wizard allows you to generate a custom "Command Prompt Here" context menu item for Windows. After selecting the prompt and customizing text, a small installer will be generated for you so you can use your prompt.

First, select the command prompt you'd like to appear in the context menu.

Command Prompt
PowerShell Prompt
VS 2003 Command Prompt
VS 2005 Command Prompt
VS 2008 Command Prompt
VS 2010 (x64) Command Prompt
VS 2010 (x86) Command Prompt
VS 2012 Developer Command Prompt
VS 2012 Native x64 Command Prompt
VS 2013 Developer Command Prompt
VS 2015 Developer Command Prompt



It's the simple things that I like, like a web site that generates INF files that help me add "Command Prompt Here" Explorer right-click/context menus...

Monday, March 24, 2014

Image Resizer for Windows Explorer (Right-Click... Resize Picture...)

Windows Enterprise Desktop - Image Resizer: Free, Handy Windows Explorer Shell Extension

For those not already familiar with the terminology, the software tool “Image Resizer for Windows” is what’s called an Explorer Shell Extension (aka ShellEx). When you install it on a Windows PC, it adds to Explorer’s capabilities. Thus, if you can puzzle your way into the screen capture to the left (which I resized using the very tool I’m writing about at the moment), you’ll see that an entry in the right-click Explorer menu called “Resize pictures” has been added to call put this utility to work. Selecting that menu entry produces the Image Resizer window that appears beneath the menu snippet, and shows that you can pick any of a number of default resizings (small, medium, large, or mobile). You can also create you own custom resizings as well (as I typically do for my blog posts, which are limited to 500 pixels in width, maximum).

For anybody who must work with images or screen captures on a regular basis, Image Resizer for Windows is a great add-in for their software toolbox. It’s a CodePlex project so it’s Open Source, free, and safe for general and widespread use. There’s even a server version that’s based on ASP.NET available through And for those whose memories go back far enough, yes indeed, this is a faithful replacement for the old Windows XP PowerToy also named Image Resizer. It’s pretty popular, too: according to the CodePlex home page for the tool, it’s been downloaded over 1.4 million times.


Image Resizer for Windows

Image Resizer for Windows is a utility that lets you resize one or more selected image files directly from Windows Explorer by right-clicking. I created it so that modern Windows users could regain the joy they left behind with Microsoft's Image Resizer Powertoy for Windows XP.
Feedback & Support
If you need help installing or using the tool, use the Discussions tab to ask your question.
If you find a bug or think of a feature, use the Issue Tracker tab to submit your request.


While it's been a couple years since this was updated/released, it's still a great tool for anyone doing "stuff" with images/pictures. Best part is the source is available... :)


Related Past Post XRef:
Easy image resizing for the digital camera happy - Image Resizer Powertoy clone for Vista & Windows 7 (32 & 64 bit)
Image Resizer PowerToy for XP and Vista - Easy Resizing of Images, Pictures, Digital Photos, etc via Windows Explorer

Monday, January 07, 2013

Pointy, Sharp Shell Extensions with SharpShell and the ".NET Shell Extensions - Shell Context Menus" tutorial

CodeProject - .NET Shell Extensions - Shell Context Menus


Until .NET 4.0 it was impossible to reliably create Windows Shell Extensions using .NET code. With improvements to the framework, it is now possible to use .NET to create these extensions. In this article, I'll show you how to quickly create Shell Context Menus as a C# class library.

This article is the first part in a larger series on creating Shell Extensions using .NET 4.0.  

What Are Shell Context Menus?

Shell Context Menus are COM servers that are registered in the system that allow the context menus of shell objects to be extended. This could be the context menu for a specific file type, such as *.txt files, file classes such as 'text files', drives, folders and more. The context menus can be used to provide advanced functionality that can be accessed quickly through Windows Explorer.

Getting Started

There's a lot of work involved in setting up Shell Extensions. Specific COM interfaces have to be implemented, servers must be built, the registry must be updated in a variety of ways. We're going to use a library I have developed called 'SharpShell' to do all of the hard work - leaving us with the task of creating a lightweight class library that contains our extension class.

Our Goal

The code below creates a Shell Extension that allows you to count the lines in any text file by right clicking on it and choosing 'Count Lines'. For the rest of the article I'll show you how to create a library like this. The code is shown first because I want to highlight how straightforward writing these libraries is when using SharpShell.





SharpShell is a .NET framework that allows you to create Windows Shell Extensions quickly, using C# or Visual Basic.

Can you use the .NET Framework to write Shell Extensions? This topic is discussed in the documentation page Managed Shell Extensions.

SharpShell - Can you use the CLR for Shell Extensions?


Been a long time since I've blogged about create Shell Extensions with .Net. And while the Windows/File Explorer might (might) be on the way out, we've got the better part of a decade where it will still be a key UI, so investing in creating your on Shell Extensions could still make a good deal of sense.

As a LOB dev, I find the thought of using them in our company interesting.... um...

Thursday, December 15, 2011

Copy Path Path... An easier, more configurable, flexible Explorer Shell Extension to copy a file's path (oh and x86/x64 and source available too!)

CodePlex - Path Copy Copy

"A Windows Explorer add-on that adds a contextual menu item on all files and folders allowing the user to copy the path in various formats. Idea copied from "Path Copy".
Works on Windows XP or later, both 32-bit and 64-bit versions.


The extension has a modular architecture where each menu item in the sub-menu is actually a Plugin.

Custom plugins are supported using COM - plugin developers should check out the Documentation section for details.


On XP I've used ClipPath for years (since 2004!) but when I moved to Win7 x64 I've been just been using the baked in Shift-Right Click "Copy as Path." And while that works, there's the remembering to hold the shift (which I always forget), the fact that it puts quotes around the path and there's no options or means to configure it (that I know of).

So when I saw this I knew I had to give it a try...


Not only is it free, but the source is available (and you don't have to download it from CNET's :|   )

v9 installed with no problems and as soon as I fired up Explorer, the option was right there. No fuss, no muss and just works...

And if this doesn't give me enough options, well... lol


Related Past Post XRef:

Monday, May 24, 2010

Want to write Managed IE/Shell Extensions, but thought that was “bad”? That was the past… With .Net 4 the world of Managed Extensions is now open to you.

vcsjones - Writing a Managed Internet Explorer Extension: Part 1

“I’ve recently had the pleasure of writing an Internet Explorer add on. I found this to somewhat difficult for a few reasons and decided to document my findings here.

Managed vs Native

One difficult decision I had to make even before I had to write a single line of code was what do I write it with? I am a C# developer, and would prefer to stay in that world if possible. However, this add-on had the intention of being use commercially, and couldn’t make the decision solely based on preference.

Add-on’s to Internet Explorer are called Browser Helper Objects, often documented as BHOs as well. They are COM types, thus if we were going to do this managed, we will be doing some COM Interop. I’ve done this before, but mostly from a level of tinkering or deciding to go back to native. The .NET Framework had another benefit to me, and that was WPF. My BHO requires an user interface, and doing that natively isn’t as easy or elegant as using native libraries. Ultimately I decided to go with .NET Framework 4.0, and I can only recommend the .NET Framework 4.

Previous versions of the CLR has a serious drawback when exposing the types to COM: They always used the latest version of the CLR on the machine. If you wrote a BHO in the .NET Framework 1.1, and 2.0 was installed, it would load the assembly using the .NET Framework 2.0. This can lead to unexpected behavior. Starting in the .NET Framework 4, COM Visible types are guaranteed to run against the CLR they were compile with.

image …”

In the recent past, writing Managed Extensions has been frowned upon, and pretty much off limits, due to lack of in-process side-by-side support in the CLR. The first Extension would load the CLR it needed and all later Extensions in the process would have to use that CLR version. Period.

That was the past…

.Net 4’s support for in-process side-by-side CLR versions means that once scary place of writing Managed IE/Windows Shell extensions is now open, available AND supported.

Forget what you knew, you CAN, with .Net 4, write Managed IE/Shell extensions. So what are you waiting for?  ;)


Related Past Post XRef:
Taking your first steps with spicIE
Spice up your IE with spicIE – Writing IE7/8 Plugins in managed code in minutes (beta)

Saturday, June 07, 2008

Have some HASHes with your Shell – HashTab, the File Hash Explorer Shell Extension (a new “Much Have” Shell Extension?) - HashTab Windows Shell Extension


HashTab is a Windows shell extension which adds a tab called "File Hashes" to the Windows Explorer file properties. The tab contains the MD5, SHA1 and CRC-32 file hashes. These are common hashes that are used to verify the integrity and authenticity of files. Many download sites list the MD5 hash along with the download link. The HashTab makes it very simple for Windows users to check these hashes on any file on the system without using external tools. The screenshot to the right shows an example.


How cool! (And how have I never found this in the past?… ). I mean, WOW, this makes getting a file hash almost too easy. Microsoft, grab this and bake it into Windows 7, please?


The install on my Vista box was smooth and easy (NT, 2000, 2003, 2008, XP, and Vista are all supported.) and the Extension worked the first time with no problems. Works for both local files and those on network shares.


The License page on the installer made me laugh…


This should be more than enough hash variants for about everyone…

image image


(via James Manning's blog - HashTab - easily see the hashes for files)

Friday, April 11, 2008

File Hash Generator Explorer Shell Extension - MD5 a file via right-click in Windows Explorer...

CodeProject - File Hash Generator Shell Extension




There are two coding concepts covered in this article. The first is cryptographic hash and the second is windows shell extensions. The cryptographic hash, of which there are many different algorithms, produces the digital fingerprint of a file. The .NET Framework provides 6 System.Security.Cryptography.HashAlgorithm implementations that can be used for generating the digital fingerprint: MD5, SHA-1,SHA-256,SHA-384,SHA-512 and RIPEMD-160. The two most commonly used when downloading a file are MD5 and SHA-1. Windows shell extensions take us beyond the comfortable realm of managed code and force us to implement COM to integrate into the unmanaged world of Win32. For this element of the utility,code is pulled directly from Dino Esposito's article Manage with the Windows Shell: Write Shell Extensions with C#. Dino's explanation of the COM interfaces and sample code were invaluable to this project. To really understand the implemention of a shell extension, I highly recommend his article.

Using the Utility

With the integration into the Windows Explorer context menu, generating the hash as simple as selecting one or more files then right-clicking to display the context menu. From this menu, you can select which type of file hash you want to generate by selecting the sub-menu option. You will then be presented with a window containing the file name, the hash that you selected, plus the full path to the file(s) that you selected. This DataGridView table allows for selecting of the desired values and copying to the clipboard if you need to publish the hash value. It's that easy!


While I have a number of MD5 file hashing utilities, this one looks like the easiest to use (hard to beat a right-click)... Plus it's cool that it is written in .Net. :)

Wednesday, March 12, 2008

Ton's O Tooltips - Five Freeware Metadata Tooltip Tools - Five freeware programs to help you find the optimal informational tooltips for most file types

"Description: this posting will present an overview of a number of freeware options that can add informational tooltips to various file types. Informational tooltips are those informational windows that appear when you hover the mouse over various files. Five programs are presented here including Infotag Magic, Filetip, Thumbview, MediaCoder, and Audioshell.

Shortly after publishing my Infotag Magic review (a program which introduces informational tooltips for a variety of file types including audio files, text files, and executables), I received an email from a reader asking about the possibility of adding tooltips to images and video files that displayed the image resolution for these. I therefore did a bit of research about the various freeware options for installing tooltips for a range of filetypes, and this is a summary of what I found. Note that the first thing that you should do before installing anything is check if the filetypes you are interested in already have adequate tooltips, as many media players and image viewers introduce this functionality.


If you're interested in extended tooltips for many media/image/file formats then you should check out this FreewareGenius review...

Thursday, November 15, 2007

FolderSize 2.4 Released

SourceForge - FolderSize

"Folder Size for Windows adds a new column to the Windows Explorer details view that displays the sizes of files and folders. A service scans your hard disk in the background and caches the results. Designed for performance!


Looks like v2.4 of FolderSize is out... A number of people I know have found these Windows Shell Extension very useful...