天天看點

【Windows 指令行】CMD 在資料總管中打開目前路徑

cmd指令行, 在資料總管中便捷檢視檔案屬性

CMD中利用資料總管打開目前路徑

在cmd中需要檢視檔案夾對應資源時,手動打開十分不便,利用explorer指令可以便捷的打開對應的路徑:

輸出:

explorer %cd%

回車

【Windows 指令行】CMD 在資料總管中打開目前路徑

效果:

【Windows 指令行】CMD 在資料總管中打開目前路徑

解釋

%cd%

為current directory,系統環境變量,表示目前目錄位置,可以輸出确認:

【Windows 指令行】CMD 在資料總管中打開目前路徑

exploreor

是資料總管的指令,可以接受path路徑作為輸入。

ref:

https://wenwen.sogou.com/z/q825809466.htm

https://zhuanlan.zhihu.com/p/30219402

explorer params:

https://blog.csdn.net/yunyu5120/article/details/6024506

https://blog.csdn.net/zhuzhuyule/article/details/51063148

【Windows 指令行】CMD 在資料總管中打開目前路徑