|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 # Q' D, H& }( N3 R' G# O
( q. e8 @$ P0 `; l$ J/ k
* a+ C2 i8 R6 ~5 w
using System;7 s E, F6 ^0 }, y+ f3 ?& M r
using System.Diagnostics;8 @9 P2 {* i; w# y1 q* w7 d
8 D R& U1 i: ]& N# _ var currentFile = Mastercam.IO.FileManager;
' F5 N" N/ y0 Gif (currentFile!= null)
, ]' n; }- h1 {5 p{' C% Z9 N: G( ]$ p
string currentFilePath = currentFile.Path;% W* `( K2 ~, [" o+ {7 C: c
string currentFolder = Path.GetDirectoryName(currentFilePath);: F2 q0 K6 u' }1 k: {
Process.Start("explorer.exe", currentFolder);
" `7 Z, E& j+ j; K}
" T J% ^7 @7 l0 j8 K1 ]: B# z版主,您好,指点一下这个需要获取路径要怎么写啊?
N1 u4 O6 R; J3 K0 Q% V |
|