|
|
本帖最后由 xinruyu369 于 2024-11-4 23:40 編輯
; q! I) `9 B: j) m9 }. o r9 A J4 P" }1 ?
# R1 O1 [2 m( T+ _ i% q4 Jusing System;
" C% P0 ~8 X0 ?7 [) ^$ d9 X- B8 busing System.Diagnostics;
! }6 F/ J7 U5 \( Q5 {7 {# l& Y' M, M1 R" r6 ~
var currentFile = Mastercam.IO.FileManager;' G# |0 G1 N& r- I. d' q4 v
if (currentFile!= null)2 g& d" |5 v/ B2 |; R9 @) u
{
4 o' p1 c( d# Q* f) h: I) P string currentFilePath = currentFile.Path; A" c) G7 S/ K! P% ]$ o+ k
string currentFolder = Path.GetDirectoryName(currentFilePath);
6 [$ a4 q( S% Y* S9 G Process.Start("explorer.exe", currentFolder);
* r4 A# X8 k8 B2 O; o) J1 y7 c4 u}
: d" r5 e @- m; }版主,您好,指點一下這個需要獲取路徑要怎么寫啊?% G. j# l/ l4 D6 B
|
|