|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 ' q# b$ ?% ~8 w
& n$ ` V3 u, _! {% r1 ~: o
. @$ \& w0 F) C5 |/ Q$ F
using System;
# n+ A7 Z6 }! ~, t5 `/ \ ~$ K' V/ @using System.Diagnostics;
% |* F! x+ [8 b C- p" m$ ^$ h2 q/ t+ }/ L+ q5 q. `$ H
var currentFile = Mastercam.IO.FileManager;
: d ~' P+ \ J, h) l6 ^- D% k9 Y5 |5 Cif (currentFile!= null)
, g. r3 m* b1 i# J{9 ~! \$ |' ]% Q
string currentFilePath = currentFile.Path;1 y7 [" N/ Q( a$ K0 l* i( t
string currentFolder = Path.GetDirectoryName(currentFilePath);- T& p1 j+ D5 f: h; ` b% j r
Process.Start("explorer.exe", currentFolder);
1 z5 N) h6 V: D( ?}; o: k8 f9 b e- w. T- s
版主,您好,指点一下这个需要获取路径要怎么写啊?# h: a* N, {; U
|
|