|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
6 I. D+ I) T& |' M" G$ a& T$ U: k2 T `! K
2 u) f# y$ Z2 `8 ~1 ]' u& ~using System;9 F! t* g+ x/ v
using System.Diagnostics;
' _/ a* s6 C1 r* D; ^* I" h2 ]+ {- e6 P
$ T" @5 d8 J `; }' j var currentFile = Mastercam.IO.FileManager;
9 g; E9 [4 ^' ]if (currentFile!= null). v8 {8 f# v( {" M( C3 Y
{
0 h, }$ }' i6 s# J% k& C8 x string currentFilePath = currentFile.Path;- O1 _( S: F/ C$ @
string currentFolder = Path.GetDirectoryName(currentFilePath);4 C; K0 s9 E& F0 [+ r
Process.Start("explorer.exe", currentFolder);$ N7 ?; ]$ D$ k/ ] o9 Y
}
# r, B& H- g- I* D1 U版主,您好,指点一下这个需要获取路径要怎么写啊? O" P4 `" K/ ~+ @4 D4 p# c" \/ c i
|
|