|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 $ _ `9 K" ^; s" R
7 G H6 I X! U e& \2 Q
: N3 i- h: m( S3 T5 {& s
using System;; {$ F6 s7 h2 Z$ ]" d0 r
using System.Diagnostics;' T5 e% @1 d5 y, Y4 C
- b H' _0 ] H6 O) w var currentFile = Mastercam.IO.FileManager;* W8 p" I2 E! Z( x# N! O* ]) y
if (currentFile!= null)& a* e1 ]$ s9 y! g2 f6 ?" p6 ~; C
{
$ [7 O6 E1 }; f; J; ^/ [ string currentFilePath = currentFile.Path;
/ W6 R- p+ L3 d& S string currentFolder = Path.GetDirectoryName(currentFilePath);
5 _$ j0 ?* I* X) B; m8 f) U: a Process.Start("explorer.exe", currentFolder);: y( d- k% p4 Z; p9 V% B
}
$ z; N3 M) J \+ n6 d3 n版主,您好,指点一下这个需要获取路径要怎么写啊? M7 v. E6 ]! n7 {- v7 C
|
|