需要帮助cmd.exe编码 [英] Need help with cmd.exe coding

查看:73
本文介绍了需要帮助cmd.exe编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编辑了注册表以在此处打开一个命令提示符。我的问题是可以将cmd提示符设置为从注册表运行命令吗?我希望能够在Windows资源管理器中右键单击并进行选择,使cmd提示符在当前目录中执行命令。在坚果外壳中,我想右键单击Windows 7资源管理器窗口,然后单击该菜单中的一个项目,该项目将在当前目录中创建一个新的子目录。可以做到这一点。我不是程序员,除了编写简单的批处理文件外,没有太多的知识。任何帮助将不胜感激,因为我已经试图解决这个问题两年了。提前致谢。 Joe

I have already edited the registry to open a comand prompt here. My question is can the cmd prompt be set to run a command from the registry? I would like to be able to right click in windows explorer and have a selection that would make the cmd prompt execute a command in the current directory. In a nut shell I would like to right click the windows 7 explorer window and click an item in that menu that would make a new sub directory in the current directory. Can this be done. I am not a programmer and don''t have much knowledge except in writing easy batch files. Any help would be appreciated as I have been trying to figure this out for two years now. Thanks in advance. Joe

推荐答案

该功能已内置。您可以右键单击>新>文件夹和那将做你想做的同样的事情。
That functionality is already built in. You can right click > New > Folder and that will do the same thing you''re trying to do.


显然我没有正确地问这个问题,或者你不明白我想要完成什么。我知道您可以使用内置到Windows中的内容创建一个新文件夹但是您必须键入文件夹的名称,如果您需要创建多个文件夹,则需要耗费大量时间。如果我在上下文菜单中有多个选项可以创建一个子文件夹,一个名为1024x768,另一个名为800x600,我只需在上下文菜单中单击该选项就可以创建一个子文件夹,它可以保存我很多时间。谢谢。
Evidently I did not ask the question correctly or you did not understand what I am trying to accomplish. I know you can create a new folder by using what is built into windows but you have to type the name of the folder and if you need to create several folders it is time consuming. If I had several choices in the context menu that would create a sub-folder, one named 1024x768 and another one named 800x600 and all I had to do was just click that selection in the context menu and it would create a subfolder it would save me a lot of time. Thanks.


如果在 \HKEY_CLASSES_ROOT \Folder\shell \ 中向注册表添加一个子项,然后添加一个该被调用命令下的子键。您可以设置命令的默认值来调用批处理文件或脚本。这样,当您右键单击文件夹时,可以从上下文菜单中调用该命令。
If you add a subkey to the registry at \HKEY_CLASSES_ROOT\Folder\shell\ and then add a subkey under that called command. You can set the command''s default value to call a batch file or script. That way, when you right click a folder, you can call that command from the context menu.


这篇关于需要帮助cmd.exe编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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