|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
& B/ M4 l4 \) t( x7 |2 Q5 L6 ~6 ?# r1 g) C$ G9 g: l
7 N6 i1 C5 l5 Y5 m- C
using System;
2 b2 H; U8 @; ?! yusing System.Diagnostics;2 o; G4 E6 J4 E. ~3 k
: x8 p" M* Q4 a1 `6 K( H var currentFile = Mastercam.IO.FileManager;6 ^) v) N+ W j; M
if (currentFile!= null)$ j3 f5 P0 F1 o- j1 {( k# }# i2 k
{
8 ~) Y7 d# P$ b" }! [ string currentFilePath = currentFile.Path;2 K$ @1 m3 y {
string currentFolder = Path.GetDirectoryName(currentFilePath);5 D; U5 w+ d7 G1 {0 ?. s
Process.Start("explorer.exe", currentFolder);6 u% r' [1 ]2 P$ n/ i
}8 T e: K% ^, {: I$ w- @+ h9 X+ t
版主,您好,指点一下这个需要获取路径要怎么写啊?
/ m8 K x, `( ] |
|