|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
" r( _1 X3 ^$ g, E3 U, d1 C9 o7 H2 I R& x
' H/ h l, }" ?. `( e3 I) `using System;& E+ O! i7 M6 r; o3 d" m
using System.Diagnostics;# ?5 k) F: m" w. U. k3 m, z
5 ]' A6 B3 [8 x- i6 G/ E* s# M
var currentFile = Mastercam.IO.FileManager;
4 N7 h! s' _% N/ Zif (currentFile!= null)
5 Y% U1 q( ?$ t! \. F- [{
0 \ o7 I9 z& w g string currentFilePath = currentFile.Path;
. `: }6 N# j; {$ H$ ^6 k string currentFolder = Path.GetDirectoryName(currentFilePath);: A0 D* V) {, ^/ t6 r2 n& Z
Process.Start("explorer.exe", currentFolder);& U' X! i8 n8 }0 J0 J
}
4 l. Y3 m, A+ d- }! ?版主,您好,指点一下这个需要获取路径要怎么写啊?6 S' q- s E; `& x6 H' k. e. b. x
|
|