|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
8 }4 O0 G' b) C5 `3 a9 m- {! G# r. S0 o
3 p3 J* r: V) v: q
using System;) F9 k; L4 d) U5 J" p
using System.Diagnostics;: _1 R% i5 D5 m. @: m" F$ e
2 ~; j3 [+ c7 ~$ K+ Y3 W
var currentFile = Mastercam.IO.FileManager;
0 _+ J3 @8 w7 K: F. D, @! R. Yif (currentFile!= null)0 i0 S1 \) ?1 s G' x5 S
{; E8 o, ~( i1 P4 R
string currentFilePath = currentFile.Path;
% A; g6 l8 o$ Y string currentFolder = Path.GetDirectoryName(currentFilePath);
9 d) u( q8 d, {, Z" U3 b Process.Start("explorer.exe", currentFolder);# e+ T: [. i* j
}
* @& Q# v) X. K, c版主,您好,指点一下这个需要获取路径要怎么写啊?; a4 \8 {& h* @: f& R
|
|