|
|
本帖最后由 xinruyu369 于 2024-11-4 23:40 編輯
+ v y4 y4 N0 L: o/ K* m8 A( E# B4 d! H) x; A+ _/ L0 f' n! X( h
0 [7 k$ R5 d, p
using System;! g, O7 Z! W4 c4 n, v/ E
using System.Diagnostics;
# B" f1 ]% D, Z+ U
8 a" ]8 P* ^, I) O1 @! J! H4 e0 o4 } var currentFile = Mastercam.IO.FileManager;0 E: L) o1 q1 W4 c7 \, _+ _
if (currentFile!= null)
$ j" W& \8 A, X1 {/ G# I{
0 w: W- r$ e5 X) S' H( |" [ string currentFilePath = currentFile.Path;: o( m- U$ ^# Q- @$ s: ^, `
string currentFolder = Path.GetDirectoryName(currentFilePath);
8 m9 k9 f7 E3 W2 N# l7 q4 A/ v Process.Start("explorer.exe", currentFolder);- k0 l( {1 ~! E1 f1 h
}
3 B- \8 c5 x, n# ~版主,您好,指點一下這個需要獲取路徑要怎么寫啊?
4 h5 @6 e+ ] b" a4 D6 W, m9 {" l |
|