在Windows资源管理器中显示文件 [英] Showing file in Windows Explorer

查看:126
本文介绍了在Windows资源管理器中显示文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最喜欢的IDE Wing IDE 具有用于在资源管理器中显示活动文件的命令.这意味着,当您启动该命令时,它将在文件所在的文件夹中打开一个资源管理器窗口,然后选择该文件.

My favorite IDE Wing IDE has a command for showing the active file in Explorer. This means that when you launch the command, it opens an explorer window on the folder that the file is in, and then selects the file.

问题是,如果窗口已经打开,它将无法选择文件.它会激活窗口,但不会选择文件.真烦人我希望始终选择文件

The problem is, that if the window is already open, it fails to select the file. It activates the window, but the file doesn't get selected. That's annoying. I want the file to always be selected

我与一位开发人员交谈,他说他们正在使用'explorer /select,%s' % filename来显示文件,上面的烦恼可能是该命令的怪癖.

I spoke to one of the developers and he said that they're using 'explorer /select,%s' % filename to show the file, and that the above annoyance might be a quirk of that command.

有人知道如何避免这种行为吗?

Does anyone have an idea how to avoid this behavior?

(该解决方案需要在Windows 2000,XP,2003 Server,Vista和Windows 7中运行.)

(The solution needs to work in Windows 2000, XP, 2003 Server, Vista, and Windows 7.)

推荐答案

按照 https: //support.microsoft.com/zh-CN/kb/152457 ,其中指出可以组合开关",该怎么办:

As per https://support.microsoft.com/en-us/kb/152457, which states "switches can be combined", what about:

explorer /n,/select,c:\path\to\file.ext

/n 应该强制一个新窗口.

/n should force a new window.

这篇关于在Windows资源管理器中显示文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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