热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

mfc打开文件菜单_选择多个文件时,如何使“打开方式”菜单可用?

mfc打开文件菜单Ifyouworkwithlotsoffilesonadailybasis,youwanttheprocesstoworkassmoothlyandquickly
mfc 打开文件菜单

mfc 打开文件菜单

how-do-i-make-the-open-with-menu-available-when-selecting-multiple-files-00

If you work with lots of files on a daily basis, you want the process to work as smoothly and quickly as possible, and being able to add some new menu options can make the experience even better. With that in mind, today’s SuperUser Q&A post has some great solutions to a reader’s context menu woes.

如果您每天处理大量文件,则希望该过程尽可能顺畅,快速地进行,并且能够添加一些新菜单选项可以使体验更好。 考虑到这一点,今天的SuperUser Q&A帖子为读者的上下文菜单问题提供了一些很好的解决方案。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

问题 (The Question)

SuperUser reader Clonkex wants to know how to make the “Open With” context menu option available when selecting multiple files:

超级用户阅读器Clonkex想知道在选择多个文件时如何使“打开方式”上下文菜单选项可用:

I need the ability to open multiple image files in Google Chrome all at the same time without having to select and open each one individually via the standard “Open With” context menu option. When I select multiple files, the “Open With” option is no longer available in the context menu.

我需要能够同时在Google Chrome浏览器中全部打开多个图像文件,而不必通过标准的“打开方式”上下文菜单选项分别选择和打开每个图像文件。 当我选择多个文件时,上下文菜单中的“打开方式”选项不再可用。

So far, several answers have provided decent workarounds, but they are not very flexible when it comes to working with a large variety of files where the “Open With” option would be very useful. Is there a way to actually enable “Open With” functionality when multiple files are selected?

到目前为止,有几个答案提供了不错的解决方法,但是当涉及使用“打开方式”选项非常有用的各种文件时,它们并不是很灵活。 选择多个文件时,是否有办法真正启用“打开方式”功能?

How do you make the “Open With” context menu option available when selecting multiple files?

选择多个文件时,如何使“打开方式”上下文菜单选项可用?

答案 (The Answer)

SuperUser contributors IT Solutions and xypha have the answer for us. First up, IT Solutions:

超级用户贡献者IT解决方案和xypha为我们找到了答案。 首先,IT解决方案:

Add the registry key text shown below to a text document, save it as OpenWith.txt, then change it to OpenWith.reg. Next, double click on it to import the new registry setting.

将下面显示的注册表项文本添加到文本文档中,将其另存为OpenWith.txt,然后将其更改为OpenWith.reg。 接下来,双击它以导入新的注册表设置。

Make sure the registry key’s value points to chrome.exe along with the correct full path to its location on your system.

确保注册表项的值指向chrome.exe以及指向其在系统上位置的正确完整路径。

how-do-i-make-the-open-with-menu-available-when-selecting-multiple-files-01

Now when you select all the image files, the “Open With” context menu option will be available and open them with Google Chrome.

现在,当您选择所有图像文件时,“打开方式”上下文菜单选项将可用,并使用Google Chrome打开它们。

how-do-i-make-the-open-with-menu-available-when-selecting-multiple-files-02

Further Resources, Notes, and Considerations

其他资源,注释和注意事项

  • Context menus are shortened when more than 15 files are selected [Microsoft KB2022295]

    选择超过15个文件时,上下文菜单会缩短 [Microsoft KB2022295]

  • Note that the registry key setting shown above can be named “Open With Chrome” or whatever else you wish and it will perform the same function (open all the selected files with Google Chrome). Whatever you choose to name it, that is the text you will see in place of “Open With” in the context menu.

    请注意,上面显示的注册表项设置可以命名为“使用Chrome打开”或其他任意名称,它将执行相同的功能(使用Google Chrome打开所有选定的文件)。 无论选择哪种名称,即会在上下文菜单中代替“打开方式”看到的文本。
how-do-i-make-the-open-with-menu-available-when-selecting-multiple-files-03

Followed by the answer with an alternative solution from xypha:

接下来是xypha的替代解决方案的答案:

You can accomplish the same thing using a workaround via the “Send To” option in Windows File Explorer’s context menu. Here is how to set it up:

您可以通过Windows File Explorer上下文菜单中的“发送到”选项使用一种解决方法来完成同一件事。 设置方法如下:

Step 1

第1步

Add Google Chrome’s shortcut to the SendTo Folder (located at %AppData%\Microsoft\Windows\SendTo) so that it may appear in the Send To sub menu. This can be done in one of several ways. I will share one of the easiest here:

将Google Chrome浏览器的快捷方式添加到SendTo文件夹(位于%AppData%\ Microsoft \ Windows \ SendTo),以便它可以显示在Send To子菜单中。 这可以通过几种方式之一来完成。 我将在这里分享最简单的一种:

  • Right click and drag the shortcut that was created on your desktop when Google Chrome was installed or its shortcut in the Start Menu to the SendTo Folder and select Copy.

    右键单击并将在安装Google Chrome时在桌面上创建的快捷方式或其快捷方式在“开始”菜单中拖到SendTo文件夹中,然后选择“复制”。
  • Make sure to right click on the new shortcut in the SendTo Folder, select Properties, then confirm that the Target field contains no command line options, just the path and file name for Google Chrome.

    确保右键单击SendTo文件夹中的新快捷方式,选择“属性”,然后确认“目标”字段不包含命令行选项,仅包含Google Chrome浏览器的路径和文件名。

Step 2

第2步

Select the desired image files and right click on them, then go to the “Send To” sub menu in the context menu and select Google Chrome. That is all there is to it. All the images will open in Google Chrome, each in its own tab. I do this with Mozilla Firefox, but it should work just as well with Google Chrome.

选择所需的图像文件并右键单击它们,然后转到上下文菜单中的“发送至”子菜单并选择Google Chrome。 这就是全部。 所有图像都将在Google Chrome中打开,每个图像均位于其自己的标签中。 我使用Mozilla Firefox来做到这一点,但它应该与Google Chrome一样好。

how-do-i-make-the-open-with-menu-available-when-selecting-multiple-files-04

Troubleshooting Tips

故障排除技巧

  • If Google Chrome does not appear in the “Send To” sub menu, try restarting Windows File Explorer from the Task Manager.

    如果Google Chrome没有出现在“发送到”子菜单中,请尝试从任务管理器重新启动Windows File Explorer。
  • If the images open in multiple windows instead of tabs, you might want to consider installing an extension to prevent this type of behaviour. I suggest One Window.

    如果图像在多个窗口而不是选项卡中打开,则可能需要考虑安装扩展程序以防止此类行为。 我建议一个窗口 。



Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程 。

Image Credit: IT Solutions (SuperUser)

图片来源: IT解决方案(超级用户)

翻译自: https://www.howtogeek.com/282416/how-do-i-make-the-open-with-menu-available-when-selecting-multiple-files/

mfc 打开文件菜单



推荐阅读
  • Spring特性实现接口多类的动态调用详解
    本文详细介绍了如何使用Spring特性实现接口多类的动态调用。通过对Spring IoC容器的基础类BeanFactory和ApplicationContext的介绍,以及getBeansOfType方法的应用,解决了在实际工作中遇到的接口及多个实现类的问题。同时,文章还提到了SPI使用的不便之处,并介绍了借助ApplicationContext实现需求的方法。阅读本文,你将了解到Spring特性的实现原理和实际应用方式。 ... [详细]
  • 在Android开发中,使用Picasso库可以实现对网络图片的等比例缩放。本文介绍了使用Picasso库进行图片缩放的方法,并提供了具体的代码实现。通过获取图片的宽高,计算目标宽度和高度,并创建新图实现等比例缩放。 ... [详细]
  • 本文讨论了一个关于cuowu类的问题,作者在使用cuowu类时遇到了错误提示和使用AdjustmentListener的问题。文章提供了16个解决方案,并给出了两个可能导致错误的原因。 ... [详细]
  • 1,关于死锁的理解死锁,我们可以简单的理解为是两个线程同时使用同一资源,两个线程又得不到相应的资源而造成永无相互等待的情况。 2,模拟死锁背景介绍:我们创建一个朋友 ... [详细]
  • 本文介绍了游标的使用方法,并以一个水果供应商数据库为例进行了说明。首先创建了一个名为fruits的表,包含了水果的id、供应商id、名称和价格等字段。然后使用游标查询了水果的名称和价格,并将结果输出。最后对游标进行了关闭操作。通过本文可以了解到游标在数据库操作中的应用。 ... [详细]
  • 高质量SQL书写的30条建议
    本文提供了30条关于优化SQL的建议,包括避免使用select *,使用具体字段,以及使用limit 1等。这些建议是基于实际开发经验总结出来的,旨在帮助读者优化SQL查询。 ... [详细]
  • 本文介绍了lua语言中闭包的特性及其在模式匹配、日期处理、编译和模块化等方面的应用。lua中的闭包是严格遵循词法定界的第一类值,函数可以作为变量自由传递,也可以作为参数传递给其他函数。这些特性使得lua语言具有极大的灵活性,为程序开发带来了便利。 ... [详细]
  • GetWindowLong函数
    今天在看一个代码里头写了GetWindowLong(hwnd,0),我当时就有点费解,靠,上网搜索函数原型说明,死活找不到第 ... [详细]
  • Linux服务器密码过期策略、登录次数限制、私钥登录等配置方法
    本文介绍了在Linux服务器上进行密码过期策略、登录次数限制、私钥登录等配置的方法。通过修改配置文件中的参数,可以设置密码的有效期、最小间隔时间、最小长度,并在密码过期前进行提示。同时还介绍了如何进行公钥登录和修改默认账户用户名的操作。详细步骤和注意事项可参考本文内容。 ... [详细]
  • Java序列化对象传给PHP的方法及原理解析
    本文介绍了Java序列化对象传给PHP的方法及原理,包括Java对象传递的方式、序列化的方式、PHP中的序列化用法介绍、Java是否能反序列化PHP的数据、Java序列化的原理以及解决Java序列化中的问题。同时还解释了序列化的概念和作用,以及代码执行序列化所需要的权限。最后指出,序列化会将对象实例的所有字段都进行序列化,使得数据能够被表示为实例的序列化数据,但只有能够解释该格式的代码才能够确定数据的内容。 ... [详细]
  • 本文讨论了在Windows 8上安装gvim中插件时出现的错误加载问题。作者将EasyMotion插件放在了正确的位置,但加载时却出现了错误。作者提供了下载链接和之前放置插件的位置,并列出了出现的错误信息。 ... [详细]
  • 如何使用Java获取服务器硬件信息和磁盘负载率
    本文介绍了使用Java编程语言获取服务器硬件信息和磁盘负载率的方法。首先在远程服务器上搭建一个支持服务端语言的HTTP服务,并获取服务器的磁盘信息,并将结果输出。然后在本地使用JS编写一个AJAX脚本,远程请求服务端的程序,得到结果并展示给用户。其中还介绍了如何提取硬盘序列号的方法。 ... [详细]
  • 安卓select模态框样式改变_微软Office风格的多端(Web、安卓、iOS)组件库——Fabric UI...
    介绍FabricUI是微软开源的一套Office风格的多端组件库,共有三套针对性的组件,分别适用于web、android以及iOS,Fab ... [详细]
  • Python正则表达式学习记录及常用方法
    本文记录了学习Python正则表达式的过程,介绍了re模块的常用方法re.search,并解释了rawstring的作用。正则表达式是一种方便检查字符串匹配模式的工具,通过本文的学习可以掌握Python中使用正则表达式的基本方法。 ... [详细]
  • 本文介绍了PE文件结构中的导出表的解析方法,包括获取区段头表、遍历查找所在的区段等步骤。通过该方法可以准确地解析PE文件中的导出表信息。 ... [详细]
author-avatar
蓝客杂货
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有