|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 ' E% i, ]' {4 W3 J, J/ }
" E' a/ J. i- c" P) {+ J' F
I7 w: F/ v/ H- X* a) |2 G t
using System;# F) n4 a# }2 q) F' C& c9 ^
using System.Diagnostics;! \& D5 k5 s0 m! F( q9 r
( O, {4 a' [( ]; L7 i
var currentFile = Mastercam.IO.FileManager;! Y6 B6 ^% w. @. B
if (currentFile!= null)
' x: v3 h2 a6 B* f- Z{
" X/ y3 I9 Y; b7 L- u; g string currentFilePath = currentFile.Path;
& b% A5 j1 W! H string currentFolder = Path.GetDirectoryName(currentFilePath);
3 k4 l1 H; `3 E$ v G1 E; n# W5 W6 w Process.Start("explorer.exe", currentFolder);2 u* M& A4 ], D& o6 D
}
2 L- ?1 P; [% | Q7 P1 @版主,您好,指点一下这个需要获取路径要怎么写啊?
3 p' i% D' f& a) E4 x. Y; [ |
|