|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
4 Y( x4 G* {& O2 {: x L7 f5 l" ?* S
1 M0 [, W' W9 @& V7 Z
. r2 p6 g7 W+ z* l) w' ~using System;0 X/ N% K! _. S- [$ [5 `& t; V
using System.Diagnostics; G ~, u: t$ r
1 ^- R" b6 p5 i& |2 D. e var currentFile = Mastercam.IO.FileManager;
1 {3 R3 ]4 ~* ]4 P1 |! b$ \$ O# |if (currentFile!= null)" o4 m& `% ~: ]0 S; l
{
, T: L6 F* O$ N3 ` string currentFilePath = currentFile.Path;
/ d5 k$ G. ]7 e/ J. ?5 z/ V3 ~ string currentFolder = Path.GetDirectoryName(currentFilePath);
0 {3 \2 R( i: g% \% h Process.Start("explorer.exe", currentFolder);
8 i. H. P" ~0 `' D& T: J}1 k% ]- o/ `1 m6 e2 e3 p; W2 V& a
版主,您好,指点一下这个需要获取路径要怎么写啊?
- Y0 m+ n' V- ?) | J3 L |
|