我应该使用什么命令在程序结束时打开指定的路径.
start "c:\Yaya\yoyo\"
Run Code Online (Sandbox Code Playgroud)
不管用
Rah*_*thi 75
你可以尝试这样:
%SystemRoot%\explorer.exe "c:\Yaya\yoyo\"
Run Code Online (Sandbox Code Playgroud)
Dan*_*Dan 17
我认为它应该是这样的:
explorer c:/Yaya/yoyo
Run Code Online (Sandbox Code Playgroud)
fox*_*ive 11
start命令blank quotes在开头需要,因为它使用第一个双引号短语作为"Window title"
start "" "c:\Yaya\yoyo\"
Run Code Online (Sandbox Code Playgroud)
以下是打开文件夹的两个示例,一个是在该位置,另一个是在父目录中选择的文件夹。
:: Open an Explorer window with the 'temp' folder displayed and its parent hidden:
Explorer.exe /e,/root,"%temp%"
:: This one will open the parent directory and automatically select the 'temp' folder:
Explorer.exe /select,"%temp%"
:: See more examples here: https://ss64.com/nt/explorer.html
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
70253 次 |
| 最近记录: |