|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
5 j5 _) v, S; H/ m. S/ Z4 g, @9 y
' h4 f2 z* X6 `5 ~, L* `+ G9 ~
& q8 o' x% {2 Q( t0 l6 Gusing System;
" G; G! `6 b& c" i i- ~# zusing System.Diagnostics;
; Y. u; Y8 E7 x) r5 d8 a- |) O
7 t' T' x+ ] X y var currentFile = Mastercam.IO.FileManager;
: B. c0 O; B+ B% s4 qif (currentFile!= null)
- j' q8 B j; a( ^+ f{
0 [# L8 A. a, y# a4 e string currentFilePath = currentFile.Path;
2 M v4 z( x8 h, ^5 S# M) { string currentFolder = Path.GetDirectoryName(currentFilePath);$ J Z" Y/ Q& E* w0 f
Process.Start("explorer.exe", currentFolder);& ^+ K5 s6 C7 W- X
}# G2 U( g* I5 X; e
版主,您好,指点一下这个需要获取路径要怎么写啊?. j% r- _7 \. D/ `! `4 c
|
|