|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
/ \+ B2 k5 `7 ]! q- i) C3 V8 O4 T4 B' W! ?3 b1 j9 {- x- D/ d
- c- j4 {4 m. V3 s& G* busing System;8 N/ M# K9 n/ w2 U8 E0 O+ A+ U* S
using System.Diagnostics;
/ @* [" D# c/ x- V
" g4 V3 X7 i, U* @/ J! D: l var currentFile = Mastercam.IO.FileManager;
0 u! ]2 I' _$ z" bif (currentFile!= null): A2 x M; ~5 z( q
{/ R1 K! Y: a D2 l2 K+ B) p& [
string currentFilePath = currentFile.Path;
. w. Q6 N% v1 } string currentFolder = Path.GetDirectoryName(currentFilePath);6 n8 C6 U) e3 |/ H3 G
Process.Start("explorer.exe", currentFolder);
$ T w* F7 v% F2 s; c7 \! P}
* a4 ^( d+ N7 A& k# ?# q版主,您好,指点一下这个需要获取路径要怎么写啊?
$ [; L2 x7 p7 ?7 t3 X |
|