|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 + O# ~7 h5 F- {
/ z- @3 O: ]# w' t: R# a
8 V! j: k' o& e8 u" _using System;
' U2 Z7 M A$ R/ R, s# Fusing System.Diagnostics;
1 Y) ]; f0 R" d" l( c! p& X% V% Z, b B1 E6 Y2 d
var currentFile = Mastercam.IO.FileManager;
0 X+ L A& l+ ]% o6 \* @- @if (currentFile!= null)- y; y7 p5 r1 \6 |
{: L x% C( J% u% M$ G
string currentFilePath = currentFile.Path;
- s3 @) `* `0 \6 B1 F9 d string currentFolder = Path.GetDirectoryName(currentFilePath);
) W9 D5 f* H7 }3 a& c4 a% O Process.Start("explorer.exe", currentFolder); u; y) `2 P) `% K9 `
}2 h. Q- _+ X' E& d* _9 F' \
版主,您好,指点一下这个需要获取路径要怎么写啊?
Z2 R8 r) y. H* N: j |
|