|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
5 k+ b3 R, m( Z# v( o) }8 t; g6 ^8 M2 o4 {
2 C/ a a$ k3 \4 H, g7 y5 l2 D! {* _/ N3 l- o% `9 i7 [9 M3 F
using System;& ^- q# U9 T& A+ a' [
using System.Diagnostics;
8 m& D; o: k& }5 ?0 o: w. v4 Y& K' g% b
var currentFile = Mastercam.IO.FileManager;
8 S9 v* W" B/ e6 h n5 bif (currentFile!= null)
9 T2 S/ }% B. m" C{) d, \+ b. k% }( o; ?. ?) q2 M Y
string currentFilePath = currentFile.Path;) y" f& r7 h' g' y; U5 K1 R
string currentFolder = Path.GetDirectoryName(currentFilePath);
9 t0 i$ s6 l- b5 T0 p Process.Start("explorer.exe", currentFolder);
( ?6 V9 U9 T% [) T& f. F8 m* v$ _, F} l; y9 b& b2 T- q2 M! u/ e
版主,您好,指点一下这个需要获取路径要怎么写啊?
$ L! s& t2 X0 A( U( U& g |
|