【问题标题】:Open a folder using .bat使用 .bat 打开文件夹
【发布时间】:2016-11-17 15:27:31
【问题描述】:

我应该使用什么命令来打开指定的文件夹

这两行都不行

start   C:\xampp\htdocs\w\CodeIgniter_mysite\

%SystemRoot%\explorer.exe C:\xampp\htdocs\w\CodeIgniter_mysite\

【问题讨论】:

  • C:\xampp\htdocs\w\CodeIgniter_mysite\index.php 不是文件夹。这是一个文件
  • 我忘了 :D 只是 " C:\xampp\htdocs\w\CodeIgniter_mysite\ "
  • 对于 Windows 7,在命令行上发出 explorer C:\Tempexplorer D:\Workspaces 对我有用。您正在使用哪个版本的 Windows?
  • 版本:windows 7
  • 如果您将该路径复制/粘贴到开始=>运行对话框中,它会起作用吗?

标签: windows file batch-file path directory


【解决方案1】:
explorer C:\xampp\htdocs\w\CodeIgniter_mysite\

应该工作

【讨论】:

    【解决方案2】:

    语法

    explorer.exe [/n][/e][,/root,][[,/select],]


    以下命令在我的 Windows 10 中运行良好:

    explorer.exe /root,C:\
    

    或者在你的情况下:

    explorer.exe /root,C:\xampp\htdocs\w\CodeIgniter_mysite\
    

    不要忘记 /root 标记后的逗号。


    有关 explorer.exe 的更多信息,请参阅this

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-09-07
      • 2010-10-09
      • 2011-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多