|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
/ }3 h7 b/ a# U5 J) A
. n0 [9 ~4 r) a/ H# I! K# U2 ?% e# Y! U4 Z1 o( R Y9 f
using System;7 [$ ?* U! m( i0 `6 K) F, v! h
using System.Diagnostics;& p" ~) ^ K9 ?( I F7 A7 e4 L( I% G
+ C$ K h" k% s' `$ R5 Q8 c
var currentFile = Mastercam.IO.FileManager;
. v( {2 I3 u2 ?" m5 R/ Bif (currentFile!= null)& m1 {3 Q3 T" B% b+ g0 P
{' g* T A* }0 W; q& W4 h3 o3 x
string currentFilePath = currentFile.Path;# E4 ` @( ^$ g1 z0 m+ H
string currentFolder = Path.GetDirectoryName(currentFilePath);" y/ o- R0 q/ x8 y
Process.Start("explorer.exe", currentFolder);$ ~8 j+ X- \4 |$ ^4 t' t+ [
}
$ u, k( A, S J9 A- }版主,您好,指点一下这个需要获取路径要怎么写啊? y$ Y7 d7 m/ Y5 v, B7 V4 x8 R3 T; R
|
|