|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 * h8 ^" ]% R( t8 `2 N( b( n
[9 R+ D0 |! H% r9 `9 }
% D; G5 K6 j$ xusing System;$ C, a7 V( s$ K8 f, m& s4 y
using System.Diagnostics;
- v$ Y$ T v6 ?' v$ U" Z0 w; d1 i) F( Z3 m3 T
var currentFile = Mastercam.IO.FileManager;
: w R' m* ]' k4 Q& S, Bif (currentFile!= null)
" \0 T2 b8 E9 Y: D6 h. S{
4 }: }$ j4 r% @5 W. V3 M( [) ^ string currentFilePath = currentFile.Path;
8 ^) s2 |6 `) e, G& u8 J) X( ^$ M string currentFolder = Path.GetDirectoryName(currentFilePath);- m2 b K9 O8 |3 V# M
Process.Start("explorer.exe", currentFolder);
: [: _: X$ f% A; b# G( a- ^; n}4 P" ]% e& B: a8 l
版主,您好,指点一下这个需要获取路径要怎么写啊?
8 g& e5 |% e5 Z# s( @$ t |
|