|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
2 j* {) C* |) E$ y: L9 x x! k* n4 Y- u5 d+ M" P9 n' \
' |* x5 ~) x) v/ a7 }) Q3 D+ f
using System;- w* I- z+ m/ H& R) Y7 V; B
using System.Diagnostics;
% A: h4 T0 M$ L1 ?, O* {3 n1 @* X* M0 v F. P
var currentFile = Mastercam.IO.FileManager;
6 x; n6 _8 I. V: O) rif (currentFile!= null)
. G- {0 e& v* @ u{
! `$ ?7 M8 \3 ^. a string currentFilePath = currentFile.Path;
3 u) l: h4 j/ S% c. N* g$ Z5 z1 i4 R string currentFolder = Path.GetDirectoryName(currentFilePath);1 @- v! u, q: t, u$ o5 I" ?/ w! P1 G
Process.Start("explorer.exe", currentFolder);( H$ H7 W1 L1 S' I- c
}( L5 C2 H$ s& i, ]
版主,您好,指点一下这个需要获取路径要怎么写啊?# ]! f* g* g1 g6 }1 R2 u& m: p; f
|
|