|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 # B/ m2 H) R5 y5 ]
! l2 D; m6 T& L! q6 j3 u( b
1 S5 E. @" F) K/ }% @/ f8 Dusing System;
9 i. v! a5 s, g! I( e. \/ husing System.Diagnostics;
( u4 B' c7 N x% \2 y- x9 a/ P1 W1 ]$ K8 V! |$ d
var currentFile = Mastercam.IO.FileManager;; _ \0 g9 [0 S4 `
if (currentFile!= null)
6 M F+ g" F* @* v{
" f. U. w; e( i! o string currentFilePath = currentFile.Path;3 n! {2 Z/ k; l+ I* U: |4 N t
string currentFolder = Path.GetDirectoryName(currentFilePath);0 P! r* V: G( k" c
Process.Start("explorer.exe", currentFolder);
6 p- Z: c2 B5 j `& s* G}
' g6 ? M* ^" {' l ]版主,您好,指点一下这个需要获取路径要怎么写啊?
, V8 S' A* w. x+ N) G5 b |
|