|
本帖最后由 xinruyu369 于 2024-11-4 23:40 編輯 & q, t6 o4 e: f9 ~9 m/ Y+ F
* z. |, j; P# u/ v; a0 W- a
3 p/ y$ ` J& c% B: |# husing System;0 L( o2 Y9 H! A8 N; E, q0 G2 Q
using System.Diagnostics;
- w1 `$ Y. R( D m' j: b. Y) X0 N6 n; S. i8 M- z
var currentFile = Mastercam.IO.FileManager;$ R. A3 H. O& m; g
if (currentFile!= null)4 v" T. t. q" Y2 C9 T: o
{
2 E. ]1 J) v# c- @7 U u y string currentFilePath = currentFile.Path;0 j$ p; a9 X4 z* @3 L/ N0 |
string currentFolder = Path.GetDirectoryName(currentFilePath);# L% \1 e* z! {$ v8 J
Process.Start("explorer.exe", currentFolder);
" Z- \$ ~2 ]" ] O0 F) B7 \}3 g7 f( T" [- A
版主,您好,指點一下這個需要獲取路徑要怎么寫啊?9 ~" y3 M& ?0 @# Y7 F! A5 b
|
|