Windows 使用.bat打开文件夹

Windows 使用.bat打开文件夹,windows,file,batch-file,path,directory,Windows,File,Batch File,Path,Directory,我应该使用什么命令打开指定的文件夹 这两条线路不工作 start C:\xampp\htdocs\w\CodeIgniter_mysite\ %SystemRoot%\explorer.exe C:\xampp\htdocs\w\CodeIgniter_mysite\ 语法 explorer.exe[/n][e][,/root,][[,/select],] 以下命令在Windows 10 for me中运行良好: explorer.exe /root,C:\ 或者在您的情况下: ex

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

这两条线路不工作

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

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

语法

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


以下命令在Windows 10 for me中运行良好:

explorer.exe /root,C:\
或者在您的情况下:

explorer.exe /root,C:\xampp\htdocs\w\CodeIgniter_mysite\
不要忘记/root标记后的逗号


有关explorer.exe的详细信息,请参阅

explorer C:\xampp\htdocs\w\CodeIgniter_mysite\

应该可以工作

C:\xampp\htdocs\w\CodeIgniter\u mysite\index.php
不是文件夹。这是一个我忘记了的文件:D只是在Windows 7中使用“C:\xampp\htdocs\w\CodeIgniter\u mysite\”,在命令行上发布
explorer C:\Temp
explorer D:\Workspaces
,对我有效。您使用的是哪个版本的Windows?版本:Windows 7如果将该路径复制/粘贴到“开始=>运行”对话框中,它是否工作?