|
|
本帖最后由 xinruyu369 于 2024-11-4 23:40 編輯
* t* y0 r3 ~- {, g; Y' [- ~7 D' Y; P: G
4 H6 `9 p0 u8 d
using System;
$ w$ E3 a) M& x( wusing System.Diagnostics;
- X! M! X+ j8 W1 u3 `7 Z7 _# ]" m
# g- I" B) f n' l& Y var currentFile = Mastercam.IO.FileManager;; ]# y. F o1 b. ]) P) N
if (currentFile!= null)
2 b( q0 o( _' |9 g- }{4 m' i5 v1 o6 A. R9 _
string currentFilePath = currentFile.Path;" R2 A' J/ d, Y$ e8 s& {
string currentFolder = Path.GetDirectoryName(currentFilePath);
, }# Y0 Z# B F$ S Process.Start("explorer.exe", currentFolder);
/ L, ?+ v: h2 y' J3 j u- m5 P}5 X# K6 u/ @0 m# u- u9 A2 m/ h1 x: [6 p
版主,您好,指點一下這個需要獲取路徑要怎么寫啊?
% o. _( I! y+ _$ o |
|