|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 1 K5 A! X, h, e* u1 W
' L, B* F. [! U- N
: w5 M0 J5 c5 c1 b, L, o6 Iusing System;5 T( A! H. z* y7 e; W8 i. Q- @
using System.Diagnostics;9 U% {' Z* C' N1 h, b' U; S7 q0 c
2 v3 f% q6 z8 p8 o" R2 ^- j var currentFile = Mastercam.IO.FileManager;% ?* a: ?& q! h& ^( g" q! w
if (currentFile!= null)8 y& J- M N" Z' v( N/ g- t/ W
{
. t: g& R( c4 d7 Z( \3 p string currentFilePath = currentFile.Path;
0 N# n2 L3 g' d1 f8 v5 p/ ^ string currentFolder = Path.GetDirectoryName(currentFilePath);* \) z5 u2 h% @+ O+ |0 y( P
Process.Start("explorer.exe", currentFolder);: T& u% A3 I$ G: r" H/ _
}& x* h1 M7 h2 {
版主,您好,指点一下这个需要获取路径要怎么写啊?/ @( u& E% t5 A, w3 ]" g% o
|
|