|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 " m5 i( }+ H! s# w0 ?
6 P# z: m0 E2 I! x* j5 w) W8 F
7 Q% \6 s9 T$ h" }/ E
using System;
. c" w, h) Q e5 c! e5 M3 Musing System.Diagnostics;
* O Z2 E6 I+ M! k6 \. Y( Z6 E3 i P# L' ? z/ Z
var currentFile = Mastercam.IO.FileManager;
4 |- j0 G; l0 W) g2 f' Z6 uif (currentFile!= null)8 t* u# p& l, v1 A
{
: t7 I( D1 v% M string currentFilePath = currentFile.Path;, w2 T+ \( R; x, t! Z
string currentFolder = Path.GetDirectoryName(currentFilePath);
! t- C7 m+ i, h+ H5 r. K! `8 L Process.Start("explorer.exe", currentFolder);6 T& k( m9 @0 ~, K
}# l4 W) s2 p) w8 c
版主,您好,指点一下这个需要获取路径要怎么写啊?4 }/ l! V0 S5 H, t8 [
|
|