|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
7 ]8 x* {- J. P( z
- J- w( Q' h- K7 o) c. c% x6 s0 F) v/ q" m5 E
using System;
8 T, E$ k, ?) M3 E; O7 yusing System.Diagnostics;
' k. J: B: y$ _# I) g4 G
v- k; H# k5 K7 x8 w7 B! d I var currentFile = Mastercam.IO.FileManager;0 l* C8 s9 @$ L* W' Z, G. h4 P
if (currentFile!= null)* Q3 i3 r' i/ b. u9 t$ y9 l
{9 M: h2 A, l0 J9 ~! m! ~6 W
string currentFilePath = currentFile.Path;/ n* O) R# _# m1 M8 S( e# m$ S
string currentFolder = Path.GetDirectoryName(currentFilePath);/ X( |) a, f9 i( x2 m. c% a; H- [8 ^
Process.Start("explorer.exe", currentFolder);
* I* x1 w8 ]9 C: }9 C}
" C. A3 s5 o6 S" W+ r0 e$ J0 ]版主,您好,指点一下这个需要获取路径要怎么写啊?+ D+ h1 S, ~+ z8 }5 D
|
|