|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 + s9 f3 S0 u8 m" U* A
1 H j$ |" W2 o/ o2 }6 s, {( a* T
' j& {# i" R2 Z( G1 Pusing System;
0 C/ g% J$ R1 Gusing System.Diagnostics;
- c' j9 ?% L. W7 r; R# i- H
8 e; A3 `* z1 s* v( P3 V var currentFile = Mastercam.IO.FileManager;
s/ g9 _$ `) L1 m6 V' d5 L0 aif (currentFile!= null)
- Q& s. ]4 W3 ]9 h{) v& V5 k) `$ X9 d* W
string currentFilePath = currentFile.Path;
: U7 i! W* S6 P string currentFolder = Path.GetDirectoryName(currentFilePath);! A8 Q" a0 K2 V
Process.Start("explorer.exe", currentFolder);, Q$ C& L3 ?! ^
}
. ^) L9 j: y# L3 `$ D- s版主,您好,指点一下这个需要获取路径要怎么写啊?
% m# J8 z4 j' B: h8 d* Y- w |
|