[译]OpenFolder-浏览器外壳扩展
By robot-v1.0
本文链接 https://www.kyfws.com/applications/openfolder-an-explorer-shell-extension-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 5 分钟阅读 - 2361 个词 阅读量 0[译]OpenFolder-浏览器外壳扩展
原文地址:https://www.codeproject.com/Articles/16109/OpenFolder-An-explorer-shell-extension
原文作者:Jonathan [Darka]
译文由本站 robot-v1.0 翻译
前言
A free tool which provides an explorer context menu to open a Command Prompt, now supports elevated Command Prompts on Vista.
一个免费的工具提供了一个资源管理器上下文菜单来打开命令提示符,现在在Vista上支持提升的命令提示符.
- 下载源文件-19.56 KB(Download Source Files - 19.56 KB)
- 下载安装套件-88.08 KB(Download Setup Kit - 88.08 KB)
- 下载安装套件x64-99.99 KB(Download Setup Kit x64 - 99.99 KB)
介绍(Introduction)
我知道这是一篇很小的小文章,可能会被炒鱿鱼,但这只是一个小工具,我对它的源代码有一些要求.(I know this is a tiny little article and will probably get flamed, but it only a small utility and I have had several requests for its source code.)
你们中有些人可能仍然觉得它有用.我用它所有的时间.(Some of you may find it useful anyway; I use it all the time.)
OpenFolder是我很久以前写的shell扩展.它在资源管理器下的上下文菜单上提供了一个新菜单项.(OpenFolder is a shell extension which I wrote quite a while ago. It provides a new menu item on the Context Menu under Explorer.)
新菜单项"在此处打开命令提示符" …将在单击菜单时在文件/文件夹的位置打开命令提示符框.(The new menu item “Open Command Prompt Here” … will open a Command Prompt box at the location of the file/folder that was selected when the menu was clicked.)
OpenFolder
作为资源管理器上下文菜单外壳程序扩展运行,并使用ATL用C ++编写.(runs as an explorer context menu shell extension and is written in C++ using ATL.)
安装(Installation)
只需下载安装工具包,运行它,然后单击"下一步",“安装"和"完成”.(Simply download the setup kit, run it and click on ‘Next’, ‘Install’ and ‘Finish’.)
安装后,右键单击资源管理器(或大多数其他应用程序)中的文件或文件夹,然后单击"在此处打开命令提示符…“菜单项.(Once installed, right-click on a file or folder in explorer (or most other applications), then click on the ‘Open Command Prompt Here…’ menu item.)
在所选文件夹中将打开一个新的命令提示符.(A new Command Prompt will be opened in the selected folder.)
Windows Vista(Windows Vista)
如果OpenFolder检测到它正在Vista上运行,它现在支持"提升的命令提示符”,有关新的"在此处打开提升的命令提示符…“菜单项,请参见上面的屏幕截图.(OpenFolder now supports Elevated Command Prompts if it detects that it is running on Vista, see the screen shot above for the new “Open an Elevated Command Prompt Here…” menu item.)
64位OpenFolder(64-bit OpenFolder)
我收到来自OpenFolder用户的电子邮件,说它在XP x64上不起作用.这是正常现象,因为无法将32位Shell扩展加载到64位Windows资源管理器中.我想为他们创建一个64位版本,所以我重新编译了(I received an email from a user of OpenFolder saying that it did not work on XP x64. This is normal as 32-bit shell extensions cannot be loaded into a 64-bit Windows Explorer. I wanted to create a 64-bit version for them so I recompiled) OpenFolder
作为64位应用程序,并创建了一个新的安装工具包来支持64位安装.(as a 64-bit appilcation and created a new setup kit to support the 64-bit install.)
64位安装已在XP和Vista的64位版本上进行了测试.(The 64-bit installation has been tested on 64-bit versions of XP and Vista.)
执照(License)
该软件按"原样"提供,没有任何明示或暗示的保证.作者概不对使用此软件引起的任何损失负责.(This software is provided ‘as-is’, without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.)
任何人均有权将本软件用于任何目的(包括商业应用程序),并可以对其进行更改和自由分发,但要遵守以下限制:(Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:)
- 此软件的来源不得虚假陈述;您不得声称自己编写了原始软件.(The origin of this software must not be misrepresented; you must not claim that you wrote the original software.) 如果您在产品中使用该软件,则应感谢产品文档中的确认,但这不是必需的.(If you use this software in a product, an acknowledgement in the product documentation would be appreciated but is not required.)
- 更改后的源版本必须清楚地标上原样,并且不得将其误认为是原始软件.(Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.)
- 不得从任何源分发中删除或更改此声明.(This notice may not be removed or altered from any source distribution.)
历史(History)
- 3.20(2008年6月17日)-将项目更新为Visual Studio 2008,并创建了64位版本和新的x64安装工具包.(3.20 (Jun 17, 2008) - Updated the project to Visual Studio 2008 and created the 64-bit version and a new x64 setup kit.)
- 3.12(2007年6月21日)-修复了非vista PC上的问题,该版本的3.11版本破坏了上下文菜单.(3.12 (Jun 21, 2007) - Fix on non-vista PC’s where by version 3.11 broke the context menu.)
- 3.11(2007年6月10日)-修复了命令处理代码中的某些错误,这些错误使用错误的命令ID来确定要处理的内容.(3.11 (June 10, 2007) - Fixed some bugs in the command processing code which was using the wrong command id’s to determine what to process.)
- 3.10(2007年5月31日)-已更新为支持Windows Vista,包括用于打开"提升的命令提示符"的新菜单项.(3.10 (May 31, 2007) - Updated to support Windows Vista, including a new menu item for opening Elevated Command Prompts.)
- 3.01(2006年3月8日)-现在在Visual Studio .NET 2005下进行编译,这也是现在使用NSIS创建的安装工具包.(3.01 (Mar 8, 2006) - Now compiled under Visual Studio .NET 2005, also the setup kit now created with NSIS.)
- 3.00(2005年10月22日)-重写以在Visual Studio.NET 2003下进行编译.也修复了一些小错误.(3.00 (Oct 22, 2005) - Rewrite to compile under Visual Studio.NET 2003. A few minor bug fixes too.)
- 2.00(2003年4月29日)-使用ATL完全重写.(2.00 (Apr 29, 2003) - Complete rewrite using ATL.)
- 1.00(1998年4月11日)-首次公开发行.(1.00 (Apr 11, 1998) - Initial Public Release.)
虫子(Bugs)
盾牌图标无法在上下文菜单中正确显示,解决方法是绘制菜单项所有者.我打算在有时间的时候解决这个问题.(The shield icon does not display correctly in the context menu, the fix is to make the menu item owner draw. I intend to fix this when I have time.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
VC7.1 VC8.0 VC7.0 WinXP Win2003 Win2K VS2005 Visual-Studio VS.NET2003 Dev 新闻 翻译