|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
3 y& g1 @+ F" {+ l$ v& n+ |
# X x( D; U w6 D, y% I* N, G$ T) Q+ q9 ]# u( _1 W
using System;
8 a% K& K, G" h) |using System.Diagnostics;) e' X8 Y- f( K- P% T
* H u/ D2 I3 o- w2 l) p
var currentFile = Mastercam.IO.FileManager;
- K0 n) t8 p. R) @2 xif (currentFile!= null)
2 X+ S( ~3 }& y{, M& v3 O7 B7 h6 U
string currentFilePath = currentFile.Path;- L' D6 E0 S: b0 g
string currentFolder = Path.GetDirectoryName(currentFilePath);6 j) H3 W) r J, z7 u" H
Process.Start("explorer.exe", currentFolder);
) r" D! V, t! P, W j% M}( q1 N! @9 O; f' h7 M
版主,您好,指点一下这个需要获取路径要怎么写啊?
: i3 C0 z, d1 y/ L5 k |
|