|
|
本帖最后由 xinruyu369 于 2024-11-4 23:40 編輯 0 {4 v7 L2 V' {* p( R
& e1 o, q( ^; z/ P2 U
% x- a& p6 h/ ausing System;7 F% V; s6 E# i5 O8 T) m
using System.Diagnostics;
0 @1 Z$ {2 y( s/ h; H p% t* I m* H) w/ f0 R. ^
var currentFile = Mastercam.IO.FileManager;8 @ B3 S" S6 ?
if (currentFile!= null)
; t- T2 g! Z& L; T& d$ z{
* Z- J: U: M2 _; V- d string currentFilePath = currentFile.Path;
/ H0 x" X! N s* Y; X2 } string currentFolder = Path.GetDirectoryName(currentFilePath);
/ P" D; _1 Z7 s$ {# z- Q7 d Process.Start("explorer.exe", currentFolder);
( \) u/ N+ \9 [( r3 M) z}
7 {5 [+ \3 f0 l版主,您好,指點一下這個需要獲取路徑要怎么寫啊?
7 ^/ P' P. `. T# o |
|