|
|
本帖最后由 xinruyu369 于 2024-11-4 23:40 編輯 ; ?" J% A! i0 q: `
: H, W3 D( i# P5 {
D1 x4 e$ ?6 }: S8 r& a' pusing System;3 x- K' E! \# |: E; N
using System.Diagnostics;
* t4 b" j& h( D6 Q
% b8 @, p8 E, F, w0 S var currentFile = Mastercam.IO.FileManager;& a" s4 t& C, Y1 N
if (currentFile!= null)! z4 N" C+ Z8 p1 W6 E M; P
{
) i+ _) o- U( m. P! { string currentFilePath = currentFile.Path;8 ~: \, o8 b# x8 J; j
string currentFolder = Path.GetDirectoryName(currentFilePath);7 P# @ {3 B# y2 C3 ~4 B
Process.Start("explorer.exe", currentFolder);/ T7 G4 a8 K: n
}4 u* |( P, w( l; k! _
版主,您好,指點一下這個需要獲取路徑要怎么寫啊?
" ~8 q; U$ [" \* l4 S |
|