|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 + _9 p& t8 O5 u5 [
$ s. r* y2 j4 K3 p: p& Q& \- x
$ |% N9 |! b. Z A
using System;* F5 e6 ?% B- u$ d
using System.Diagnostics;) b3 ~2 J, K3 F% w2 H9 ^
6 I+ Q z' `6 X) v4 ^. K ` var currentFile = Mastercam.IO.FileManager;' S, v W9 r1 ~
if (currentFile!= null)
% |# W1 V, k# v- J1 X{. c: W% _6 ^) Y8 f# N' o
string currentFilePath = currentFile.Path;
3 @+ _" ]4 E+ f5 p' N. v string currentFolder = Path.GetDirectoryName(currentFilePath);
, h7 `& i0 I; T8 V! V Process.Start("explorer.exe", currentFolder);& k% M9 P* N* I9 k
}
% M8 ]5 W/ Q) l6 a+ f) R+ t( d版主,您好,指点一下这个需要获取路径要怎么写啊?3 X0 ?) S) R" X7 v
|
|