[译]PathBreaker-WTL实用程序,可轻松编辑类似PATH的字符串
By robot-v1.0
本文链接 https://www.kyfws.com/applications/pathbreaker-wtl-utility-to-easily-edit-path-like-s-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 2 分钟阅读 - 919 个词 阅读量 0[译]PathBreaker-WTL实用程序,可轻松编辑类似PATH的字符串
原文地址:https://www.codeproject.com/Articles/7661/PathBreaker-WTL-utility-to-easily-edit-PATH-like-s
原文作者:peterchen
译文由本站 robot-v1.0 翻译
前言
Editing environment strings like PATH, INCLUDE and LIB is painful? Not anymore.
编辑诸如PATH,INCLUDE和LIB之类的环境字符串会很痛苦吗?不再.
工具(The Tool)
PathBreaker是一个小型的WTL应用程序,您可以在其中粘贴(或输入)多路径字符串(例如PATH环境变量),并编辑各个路径.(PathBreaker is a small WTL application where you can paste (or enter) a multiple path string (like the PATH environment variable), and edit the individual paths.)
当处理更大的应用程序的批处理构建时,我对环境字符串(如PATH或INCLUDE变量)的编辑感到非常恼火. Visual Studio为其内部字符串提供了一个不错的接口,但是没有一个可以独立运行.(When toying around with the batch build of a larger application, I was incredibly annoyed by the editing of environment strings, like the PATH or INCLUDE variable. Visual Studio provides a nice interface for its internal strings, but nothing that works stand-alone.)
我认为这将成为一个不错的独立WTL应用程序-就是这样.无需安装,可执行文件仅为40K.(I figured this would make a nice standalone WTL application - and here it is. No installation is necessary, and the executable is just 40K.)
源代码(The Source code)
包括任何有兴趣的人的源代码.它使用WTL 7(现在为OpenSource-请参阅(Source code is included for anyone interested. It uses WTL 7 (which is now OpenSource - see) SourceForge(SourceForge) ),但也应与以前的WTL版本一起使用.可能有趣的事情是:(), but should work with previous WTL versions as well. Things that might be interesting are:)
- 使用浏览文件夹(Browsing for a folder using)
SHBrowseForFolder
.(.) - 使用时设置初始文件夹(Setting the initial folder when using)
SHBrowseForFolder
.(.) - 动态构建弹出菜单.(Building a popup menu dynamically.)
- 枚举环境变量.(Enumerating Environment variables.)
- 在列表控件中编辑标签.(Editing the labels in a list control.)
- 使用键盘输入标签编辑(F",或只是开始输入).(Entering Label Edit using the keyboard (F", or just start typing).)
- 复制/粘贴(Copying / Pasting)
CString
到/从剪贴板.(to / from clipboard.) 如果您喜欢-很好!(If you like it - fine!)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C++ VC6 Windows Visual-Studio DBA Dev Architect 新闻 翻译