| |
| |
| |
| |
| |
| |
|
2008年11月2日星期日
Weekly Twitter 2008 #44
2008年10月5日星期日
TCShell2 1.5.7: Associate .rar/.zip/etc with Total Commander
* Archive associations:
|+ Now you can double click to set the description for an extension
|+ Support jar/xpi/r00/r01 as TC's built-in archive
|+ Refresh archive associations after Apply clicked
- Fixed a bug when restoring old associations
+ Support opening in source/target panel ( /S )
下载:
http://sites.google.com/site/bamanzi/tcshell2/TCShell2-1.5.7.zip?attredirects=0
http://bamanzi.inlsd.org/win32/totalcmd/TCShell2-1.5.7.zip


2008年9月20日星期六
推荐的Total Commander工具箱
主程序:
- 对于新手,推荐安装Shanny美化版本(TCEE)
- 汉化: TCEE里面带有中文语言包,也可以直接到官方网站Languages上去找,那里还有中文的CHM格式帮助文件(比hlp好的是可以搜索文字)
- 7z: 不用说
- mhtunpack: 可打开mht,提取里面的文件
- chmdir: 可打开chm/hxt,提取里面的文件
- isoread/totaliso: 前者可解压iso/bin/nrg/img/,后者可解压和制作ISO镜像
- scilister: 基于scintilla的文件查看器,速度很快,不能编辑,非常适于浏览代码文件(需要SciTE <= 1.72,并且这个插件要放在scite安装目录中)
- syn2: 不错的编辑器
- ieview: IE,用于查看网页
- imagine: 浏览各种图片文件(如果有irfanview也凑合)
- fileinfo: 可查看exe/dll/lib等文件的一些信息(PE信息、动态库输出/依赖、LIB输出函数列表)
其它的lister插件( XML, SynPlus, ICLView, eml, xbaseview)可以安装到外部浏览器UniversalViewer中去
FileSys插件:
- UnInstaller: 用于卸载程序,控制面板里那个实在让人等得不耐烦
- Startup Guard: 管理那些自动启动的程序,可禁用或者删除
- Services: 删除、启动、停止服务
- ProcFS: 查看运行中的进程,可“删除”进程
- Virtual Disk: 虚拟磁盘,除了可以虚拟光驱代替DaemonTools,还可以虚拟硬盘、软盘
- 似乎大多没啥用。常用exif和xpiinfo这两个
- PlugMan: TC插件管理器
- FavMenu2: 在TC/资源管理器/打开文件对话框 /浏览目录对话框中跳到常用的目录(以及TC中当前显示的目录),常用目录列表缺省读自TC的hotlist
- UniveralViewer: 可浏览各种文件,支持TC的lister插件
- F4Menu: 将TC的外部编辑器(F4)设置为此功能,可显示一个打开此文件类型的常用程序列表
- TCShell2: 可给目录关联一个“在TC中打开”菜单,也可将压缩文件关联为TC打开(后面一个功能为本人添加的,基于TCShell-1.3.6的代码)
Packer: z, msi-plus, bzip2, deb, rpm, cpio, mbox, diskdir, iclread, nscopy,
Lister: iclview, xml, xbaseview, eml
FileSys: ext2fs
Content: xpiinfo, exif, deb, rpm
2007年11月2日星期五
TCShell2 1.5.6
Changes from 1.5.2
* Now based on ProgMan13's 1.3.6 (he didn't publish it on totalcmd.net), which
+ Added support for different wincmd.ini
+ Fixed bug while parsing command line
+ Guess location of wincmd.ini (COMMANDER_INI, then registry, then totalcmd.exe's path)
+ Added an edit box to show the command line
Download (source code included)
http://bamanzi.inlsd.org/win32/totalcmd/TCShell2-1.5.6.zip
Screenshots:
http://bamanzi.inlsd.org/win32/totalcmd/tcshell2-archives.gif
--------------------------------------------------
If you have Total Commander, then you don't need WinZip, WinRAR any more. These archives can be opened and handled in TC.
But some times, you may wonder: If I need to launch an archive file from my download manager, or from my e-mail, I really need an application to handle the association.
No problem, actually you can associate .zip with Total Commander, TC would take the command line parameter as directory name.
Then another problem comes that how can you associate .zip/.rar/.7z with TC? Yes, you can always do that by editing registry. But it's not handy.
Now try TCShell2, the modified version of TCShell, which can also handle archives supported by packer plugins. (Don't associate TC with some important extensions, such as .exe, .chm)
Code based on ProgMan13's code for TCShell-1.3.6. Thanks for his generious to allow me to use his code.
2007年7月12日星期四
采用Total Commander打开目录
机器上装了Google Desktop,对于找到的文件,它提供了一个"打开文件夹"的功能,但很不爽的是,它总用Explorer打开。忍受不下去了,我开始想在它在Total Commander中打开。
到Google Desktop的安装目录和它的注册表中看了一下,没什么可以配置的。
然后上Google Desktop网站,想找一个可以设置这个的插件什么的,也没有。
猜想它是调用ShellExecute来打开的,接着就试图修改注册表中"目录(Directory)"和"文件夹(Folder)"的关联: HKCR\Directory\shell\下并没有open动作, 我添加了并设置命令为C:\Totalcmd\totalcmd.exe /O "%1"之后,ShellExecute(...,"open", ...)没有什么变化,会返回5(ERROR_ACCESS_DENIED),恢复原来的就可以正常打开,奇怪; 修改HKCR\Folder\shell\open\command的值再试却没反应。
某天发现Directory Opus这个软件可以跟Windows系统集成,接管文件夹的打开操作,就安装了一个试用版本,发现它是这样的:
1. 先给HKCR\Directory\shell\下添加一个动作dopus(再下面command键值设置为dopus的命令行)
2. 将HKCR\Directory\shell的缺省值由none改为dopus,这样它的缺省动作就是dopus了
(对于Folder也同样设置。Folder是文件夹,包含Directory和其它一些不跟实际文件系统目录对应的)
俺照猫画虎,添加了一个wincmd动作,将Directory的缺省动作设置为wincmd,再试,搞定!
转成注册表操作就是如下:
[HKEY_CLASSES_ROOT\Directory\shell]
@="wincmd"
[HKEY_CLASSES_ROOT\Directory\shell\wincmd]
@="Open in Total Commander" [HKEY_CLASSES_ROOT\Directory\shell\wincmd\command] @="C:\\Totalcmd\\totalcmd.exe /O \"%1\""
补充说明:
1. 这只对ShellExecute时没有指定第二个参数(动作)时是可行的,而Google Desktop恰恰是这样,"运行"对话框也是。但如果它指定了动作是"open",那就只会走open动作了
2. HKCR\Folder\shell\command的值是REG_EXPAND_SZ格式而不是通常的REG_SZ(字符串)格式,奇怪
2007年1月17日星期三
2006年11月2日星期四
Total Commander 7.0 beta现身
Finally Total Commander 7 public beta is available!
Please report bugs here in the beta bugs forum, ONE BUG PER MESSAGE!
There is also a general discussions forum.
我比较喜欢的几个功能:
- Compare by content now allows to edit files, and to re-synchronize manually.
- 本来一般都用Beyond Compare或者WinMerge,但同步目录的时候会自动使用这个内置的比较器,所以能编辑真是太好了,不过作者说过TC7允许使用第三方工具的,不 知道实现了没有。
- Separate tree panel: Either one for both file panels, or one for each.
- 总算有个独立的树了。
- Exclude directories in "Show"-"Custom...", e.g. with *.* | .cvs.
- 这个功能俺想了很久了,尤其是在wine里面用的时候,HOME目录下一堆的.*文件很是扎眼(为什么wine不将它们解释成隐藏文件?)
- Alias commands for the command line for internal commands or external programs.
- 快捷键定义多了也记不住(而且大部分Ctrl+?快捷键已经用光了),所以在命令行上敲一个"//syncchangedir"或者 "//toggletree"也不错,呵呵
- Internal command selection dialog.
- 这条没有在帮助文件的What's New总列出,但这个版本对于TC的内部命令增强了不少,除了在配置工具条或者快捷键时按分类和关键字查找(比原来那个长长的下拉框强几百倍啊),还可在 命令行上直接使用cm_mkdir, cm_switchhidsys这些内部命令(如果怕记不住,也可以用cm_CommandBrowser打开上面说的这个对话框去找
2005年5月24日星期二
Gtk2 patch for gnome-commander-1.1.6
But the problem is a function called _gtk_clist_create_cell_layout is used by the gnome2 version gnome-commander. The symbols started with an '_' are private symbols of gtk2, they should not be used by applications (in old days, these symbols are also exported by gtk2 on some distributions, but not debian).
I just found Mandrake provides this version of gcmd, thus I download the SRPM, and found the patch from it.
===================================================================
RCS file: /cvs/gnome/gnome-commander/src/gnome-cmd-clist.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- gnome-commander/src/gnome-cmd-clist.c 2004/01/08 20:11:28 1.3
+++ gnome-commander/src/gnome-cmd-clist.c 2004/05/03 18:20:18 1.4
@@ -226,6 +226,46 @@
}
+PangoLayout *
+my_gtk_clist_create_cell_layout (GtkCList *clist,
+ GtkCListRow *clist_row,
+ gint column)
+{
+ PangoLayout *layout;
+ GtkStyle *style;
+ GtkCell *cell;
+ gchar *text;
+
+ get_cell_style (clist, clist_row, GTK_STATE_NORMAL, column, &style,
+ NULL, NULL);
+
+
+ cell = &clist_row->cell[column];
+ switch (cell->type)
+ {
+ case GTK_CELL_TEXT:
+ case GTK_CELL_PIXTEXT:
+ text = ((cell->type == GTK_CELL_PIXTEXT) ?
+ GTK_CELL_PIXTEXT (*cell)->text :
+ GTK_CELL_TEXT (*cell)->text);
+
+ if (!text)
+ return NULL;
+
+ layout = gtk_widget_create_pango_layout (GTK_WIDGET (clist),
+ ((cell->type == GTK_CELL_PIXTEXT) ?
+ GTK_CELL_PIXTEXT (*cell)->text :
+ GTK_CELL_TEXT (*cell)->text));
+ pango_layout_set_font_description (layout, style->font_desc);
+
+ return layout;
+
+ default:
+ return NULL;
+ }
+}
+
+
static void
draw_row (GtkCList *clist,
GdkRectangle *area,
@@ -389,7 +429,7 @@
/* calculate real width for column justification */
- layout = _gtk_clist_create_cell_layout (clist, clist_row, i);
+ layout = my_gtk_clist_create_cell_layout (clist, clist_row, i);
if (layout)
{
pango_layout_get_pixel_extents (layout, NULL, &logical_rect);
2005年3月25日星期五
给Knoppix动态添加软件(7)

安装很简单,将deb包解开,将所有文件拷贝到~/.dist/(当然删除那些用不着的文件)
然后在~/.dist/bin下添加一个wrapper
另外还从apt-get上搜索了一个krename,将可执行文件拷贝到路径上就可以了。Krusader 调用它来做批量重命名。
本来想直接用Windows里面安装上的Total Commander,但这次感觉跑起来很不流畅(以前都挺好的)
Krusader似乎也是在模仿TC, 很多功能都是跟它做得一样。这也不奇怪,毕竟TC可以稳坐第一把交椅。不过Krusader有个很好的地方就是集成了Konsole,很方便吧(见上图)。
以前搞cygnome时用过gnome-commander, 也是在学习TC,但它需要FAM的支持才能刷新文件夹,而且对于压缩包的支持也一直不加(作者说他是想用gnome-vfs来做),加上更新又很慢.... 反正在Cygwin下我也有rox, mc, 还有Windows下的TC; 在Linux上还有krusader 和 nautilus (虽然nautilus以前版本实在是不怎么样)
2005年3月15日星期二
TaR_nircmd: nircmd -> TypeAndRun connector
因为nircmd的功能太多,记不住参数,所以给TypeAndRun写了一个插件( typeandrun connector">tar_nircmd.dpr), 将nircmd的命令转换为内部命令,同时具有参数提示功能。
[@more@]
TypeAndRun 这个东西开始是在totalcmd.net上看见的(链接),
This program is a hot-key enabled console which allows you to start any applications, open any documents, URLs, mail addresses and folders. Forget shortcuts and various fast start panels. This program will suit those who love *nix systems, who are used to run applications through the command line, who type fast and who like hot keys.
想来是因为我用UNIX比较多,对这个东西的确比较有兴趣。
东西是在Snoopy汉化的xplorer2里面看到的,当时是因为它有一个nircmd cdrom open/close的功能
但这个小玩意的功能相当多,修改ini、注册表、文件属性,重启动,创建快捷方式,等等
我已经用来它来记录我常用的totalcmd设置和快捷键,这样我就不用每次安装了totalcmd后都麻烦地修改设置,
只需要执行如下的nircmd脚本文件(nircmd script mytc.ncl)就可以了:
inisetval .wincmd.ini Configuration ShowHiddenSystem 1
inisetval .wincmd.ini Configuration "Aligned extension" 0
inisetval .wincmd.ini Configuration UseRightButton 1
inisetval .wincmd.ini Configuration MarkDirectories 1
inisetval .wincmd.ini Configuration AltSearch 1
inisetval .wincmd.ini Configuration Win95Delete 1
inisetval .wincmd.ini Configuration IconsOnNet 0
inisetval .wincmd.ini ShortCuts F2 cm_RenameOnly
inisetval .wincmd.ini ShortCuts C+A cm_SelectAll
inisetval .wincmd.ini ShortCuts C+Z cm_ClearAll
inisetval .wincmd.ini ShortCuts C+S cm_SearchFor
inisetval .wincmd.ini ShortCuts C+INS cm_CopyFullNamesToClip
inisetval .wincmd.ini ShortCuts A+INS cm_CopyNamesToClip
inisetval .wincmd.ini ShortCuts C+G cm_CompareFilesByContent
inisetval .wincmd.ini ShortCuts C+H cm_FileSync
inisetval .wincmd.ini ShortCuts C+M cm_EditComment
inisetval .wincmd.ini ShortCuts CA+T cm_MultiRenameFiles
inisetval .wincmd.ini ShortCuts A+PGDN cm_SrcOpenDrivesh_profile
插 件本身没有什么可以多说的。感觉对于subcmds处理不太好,目前键入~cdrom只能出现~cdrom [open|close], 用alt+down可以下拉出~cdrom open {drive}和~cdrom close {drive}两项。我不想每次都alt+down才出现可用的subcmds,所以做成了这样。其实要是能像Delphi的code completion那样自动出现下拉框就好了。
2005年3月4日星期五
RPM content plugin for Total Commander
下载: rpm_wdx-1.00-src.zip
读取包信息部分的代码如下,很简单,是不是?
function ReadRPMInfo(filename: String): integer;
var
fh: integer;
fh_file: file;
r_lead: RPM_Lead;
signature, r_header: RPM_Header;
//r_info: RPM_InfoRec;
begin
Result := -1;
fh := FileOpen(filename, fmOpenRead or fmShareDenyNone);
if fh=-1 then exit;
AssignFile(fh_file, filename);
try
FileMode := 0;
Reset(fh_file, 1);if IOResult <> 0 then exit;
RPM_ReadLead(fh_file, r_lead);
if r_lead.magic <> RPM_MAGIC then exit;if not RPM_ReadSignature(fh_file, r_lead.signature_type, signature) then exit;
if not RPM_ReadHeader(fh_file, false, r_header, FileInfoCache) then exit;
Result := 0;
FileClose(fh); //oppsition to FileOpen
finally
CloseFile(fh_file);
end;
end;
2005年3月1日星期二
Debian package content plugin for Total Commander
(下载: deb_wdx-1.02.zip deb_wdx-1.02-src.zip)
前两天发给了Ghisler,今天收到回信
年前完成了Debian package content plugin for Total Commander,可以在Total
Commander中显示.deb文件的各项说明: Package, Version, Depends/Suggests/Conflicts,
Installed-Size, Summary, Description...
但因为公司邮件系统的过滤,年前发给Ghisler的邮件给拦截了。
前两天在gmail上重新发了一遍,今天收到Ghisler的回信:
Christian Ghisler <beta@ghisler.com> to me
More options 2/28/05 (3 days ago)Hi,
I have tested your Debian plugin now - it's very nice! Can you please
fill out the plugin submissions form so I can put your plugin online?> You gave one two years ago, when I sent my debunpacker, although you've
> got one from another developer just a few days before. Thanks for your
> generosity.
> But I won't reject a new one if you give for the new plugins I write,
> so that I can give it to my friend :-)Yes you can, just send me the name+address of your friend (for the key).
> Now I finished the first one: Debian Linux package (*.deb) content plugin.
> (I'm a debian fan, and often running Total Commander with WINE.
> Both the binary and the source attached.Works fine with the .deb files with which I have tested.
Best regards
Christian Ghisler
Powered by ScribeFire.
2005年2月12日星期六
Total Commander 6.50出来了
还在家里过年,发现Total Commander已经推出了6.5版本
这个工具从来没有让我失望,但我正觉得xplorer2的一些功能不错时,Total Commander里面也有了,而且做的更好
比较重要的新功能有:
- 缩略图方式(thumbnail view, 这下xplorer2不能专美了)
- 自定义显示栏目列表(Custom columns mode, 也是xplorer2提供了但tc原来没有的)
- 内容插件接口(Content plugins),可以通过插件提取文件的描述信息,比如从mp3的tag从读取作者、歌名, 并且可以用于搜索(比xplorer2的接口要强大, 它只能利用系统插件,开发起来也比较麻烦)
- 自动安装插件
New in Total Commander 6.50:
- Thumbnail view: Display of miniature pictures for images and some other file types
缩略图方式,这下xplorer2不能专美了
- Custom columns mode: Up to 29 different user-defined view modes with custom columns
自定义显示栏目列表, 也是xplorer2提供了但tc原来没有的
- Content plugins: Display+Search for additional file properties, use in multi-rename tool
内容插件接口,可以通过插件提取文件的描述信息,比如从mp3的tag从读取作者、歌名
并且可以用于搜索--比xplorer2的接口要强大(它只能利用系统插件,开发起来也比较麻烦)
- Overlay icons for special file types like LNK files (configurable)
- Automatic installation of plugins and languages when opening plugin archive (if supported by the plugin)
自动安装插件
- New configuration page for configuring all plugin types
- Alt+Shift+F3 loads lister without plugins and any multimedia additions
- Shift+button click on current directory switches to the dir part on which you clicked
与xplorer2类似的功能: 标题上的路径可以分段点击(不过视觉效果不如x2)
- Shift+button click in search on 'go to file' or 'feed to listbox' opens dir in new tab
- Search for NTFS-encrypted files
- Define different location of tree content files (treeinfo.wc)
- Show current speed also when copying in synchronize dirs function
- FTP: Support for MODE Z compressed uploading/downloading
- New type of locked tab: still allows to change dirs, but reverts to tab-root when clicking "" or switching to other tab
允许改变目录的锁定标签页
- Multi-rename tool: Multiple search+replace, search+replace history, button to reload rename results
- F5 - F2 now transfers in background also for FTP uploads+downloads
- New pseudo environment variables supported in path names, pointing to locations of virtual folders:
%APPDATA%,
%DESKTOP%, %PERSONAL% (My Documents), %PROGRAMS%, %STARTMENU%, %FONTS%,
%STARTUP% (use lowercase to access env vars with these names)
- New
internal commands (for button bar, starter menu and user-defined
hotkeys) to change drives: cm_GotoDriveA..cm_GotoDriveZ,
cm_GotoNextDrive and cm_GotoPreviousDrive
- New internal commands cm_srcactivatetab1..10 activates tab 1-10 in source panel, similar for target panel.
-
Subdir filters now also work when copying (only files of this type).
Syntax: Include: somedir1 somedir2 Exclude: *.* | somedir1 somedir2
-
Synchronize dirs: Also allow to set copy direction of equal files (via
right click menu only!), e.g. for copying them to a different location
- Remember special display modes (thumbnails, comments, custom columns) separately per tab, and when closing
- The complete list can be found in history.txt
Powered by ScribeFire.