|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 ; b# U1 s! U$ Z
3 M3 X+ Z$ n6 _, l0 r: g
, \+ {( e4 ~: L- Cusing System;
$ Y* @3 i& {( N% _* x9 Ausing System.Diagnostics;* `6 Q/ }. K0 Q1 `2 G, D {
# j2 l J0 B8 \3 z8 k, N( [4 K% e
var currentFile = Mastercam.IO.FileManager;# B9 L* O2 g9 \+ ^" ?8 k
if (currentFile!= null)9 Y- y2 N* G7 J7 z
{, ^- j3 Q- E; X$ ?9 c7 c
string currentFilePath = currentFile.Path; F% k' f+ S" v& g. a
string currentFolder = Path.GetDirectoryName(currentFilePath);" U) z, O. S- r, y1 O
Process.Start("explorer.exe", currentFolder);6 l# [1 Z$ Z$ h# \7 i
}6 z% }4 F! m2 f
版主,您好,指点一下这个需要获取路径要怎么写啊?
( p8 ~: }8 a" F k |
|