|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
2 D5 ~) Q0 J$ [9 Y3 X' E( B
4 S3 k& F4 B2 [" y+ y! a6 u) p4 N! a- B9 t- i
using System;
( S9 w9 K. c& D1 T5 O+ U6 A' B0 gusing System.Diagnostics;$ l- ~' X' \+ v5 z' s
2 v9 b" A) {; T$ Z4 V) g
var currentFile = Mastercam.IO.FileManager;% V0 P. w9 _3 k2 J
if (currentFile!= null)
5 ~* b9 f5 M# \7 _: u8 U( [{
- @. x u9 Y i' d string currentFilePath = currentFile.Path;
/ k @8 b# _9 E string currentFolder = Path.GetDirectoryName(currentFilePath);0 b4 B8 ~% ]% q9 e
Process.Start("explorer.exe", currentFolder);6 e5 V/ Q# Y: [6 V
}/ e; p$ G3 H8 ~% m$ x; e* W
版主,您好,指点一下这个需要获取路径要怎么写啊?, m6 b( x5 m! @( e. [0 \
|
|