gpt4 book ai didi

windows - 用于在同一位置启动多个 Windows 资源管理器实例的批处理脚本

转载 作者:可可西里 更新时间:2023-11-01 13:29:50 25 4
gpt4 key购买 nike

我的 Windows XP 桌面上有一个批处理脚本 (LaunchWindowsExplorers.bat),它应该启动几个 Windows 资源管理器实例。

看起来像这样:

LaunchWindowsExplorers.bat:

start explorer "C:\SomeDirectory" 
start explorer "C:\SomeDirectory"

当我双击文件 LaunchWindowsExplorers.bat

我希望看到

  • Windows 资源管理器的两个实例在“C:\SomeDirectory”打开。

相反,我看到了

  • 只有一个 Windows 资源管理器实例在“C:\SomeDirectory”打开。

我需要做什么才能让这个脚本打开两个 Windows 资源管理器实例,每个实例都在“C:\SomeDirectory”打开?

谢谢。

最佳答案

您可以使用 explorer/n,"C:\SomeDirectory", explorer/e,"C:\SomeDirectory"explorer/root,"C:\SomeDirectory"(取决于您想要的 View )。此处选项的解释:http://support.microsoft.com/kb/314853 :

Option Function


/n Opens a new single-pane window for the default selection. This is usually the root of the drive that Windows is installed on. If the window is already open, a duplicate opens.

/e Opens Windows Explorer in its default view.

/root,<object> Opens a window view of the specified object.

/select,<object> Opens a window view with the specified folder, file, or program selected.


有趣的是,这种行为(不显示同一目录的第二个窗口)似乎是 XP 特有的。 Win7 只是启动资源管理器的第二个副本。我还没有检查过 Vista。

关于windows - 用于在同一位置启动多个 Windows 资源管理器实例的批处理脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12543798/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com