|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
, E; ~4 \ ^# ~9 i# Q( Y
. V0 F1 i5 p- U2 x
$ v1 c, O# h1 s! C2 Nusing System;1 A9 w& T, Q3 A2 E
using System.Diagnostics;
. a+ F z" J- i1 D* S3 h; |" X6 S R" f
var currentFile = Mastercam.IO.FileManager;
! z% W8 _9 d' U! J8 }/ nif (currentFile!= null)
; M t) L. R3 n{3 T0 r/ t5 g4 k
string currentFilePath = currentFile.Path;
: y; ]3 t1 ~4 O string currentFolder = Path.GetDirectoryName(currentFilePath);8 ]% T: B9 I. D3 R( g- M- u- _6 _: i
Process.Start("explorer.exe", currentFolder);
: D% T" r* A5 `/ Q}
Z3 X! y; h) B版主,您好,指点一下这个需要获取路径要怎么写啊?
5 |0 x- ^5 k$ k |
|