|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 6 N0 o2 D/ E. T% u# e, w. [
9 {# b. n4 r5 f/ D
2 Q" S( `7 W- h, R: Xusing System;# r2 \7 a. L4 L$ ^6 }) G! ?. ~1 x
using System.Diagnostics;
! l" w7 Q; l! H1 M( i8 e# Z9 H! k
var currentFile = Mastercam.IO.FileManager;
: R* o+ m" i; }1 I, m2 z7 [: pif (currentFile!= null)5 c1 ~- g8 @2 K/ N& x$ [1 }
{
: y& |' B6 X# f8 F9 i" e string currentFilePath = currentFile.Path;" j8 t- B/ r& ~. O1 M
string currentFolder = Path.GetDirectoryName(currentFilePath);- ?: \2 S% ^+ r$ q
Process.Start("explorer.exe", currentFolder);
: e$ Z, y/ J( p$ A- a# H0 w}- I% n. N6 B# `7 F
版主,您好,指点一下这个需要获取路径要怎么写啊?
) r' o0 G! s, S |
|