添加批处理脚本Windows 8的上下文菜单 [英] Adding batch script to Windows 8 context menu

查看:190
本文介绍了添加批处理脚本Windows 8的上下文菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到这个在这里的一些其他问题,但还是什么也没得到了我想要的工作。

I saw some other questions about this here, but still got nothing working for what I want.

我想右击一个文件夹的空白区域,看到一个菜单用于执行批处理文件的对当前文件夹

I want to right click the empty space of a folder, and see a menu for executing a batch file for the current folder.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\treeFiles]
@="Execute treeFiles"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\treeFiles\command]
@="C:\treeFiles.bat \"%V\""
@="C:\\treeFiles.bat -d \"\"%V\"\""

通过以​​上情况,我只能看到该项目时,我右击一个文件夹(不是空的空间),该批次将相对于它执行的自我路径,而不是当前文件夹。

With the above, I can only see the item when I right-click a folder (not the empty space), and the batch will execute relative to it's self path, not the current folder.

不知道如何解决?

推荐答案

使用这个代替:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\treeFiles]
@="&Execute treeFiles"
"Icon"="%SystemRoot%\\System32\\shell32.dll,71"

[HKEY_CLASSES_ROOT\Directory\Background\shell\treeFiles\command]
@="C:\\treeFiles.bat \"%V\""

这篇关于添加批处理脚本Windows 8的上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆