|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 0 h, W. H+ U: R6 e4 w6 t
7 l" x Z- J9 U% v8 @. a# t$ D
0 L. s. R/ h! g
using System;# S5 G" X6 q" v4 [
using System.Diagnostics;! p% Q: K/ [4 c; g2 E, V
4 o- _* W1 Q2 g
var currentFile = Mastercam.IO.FileManager;! B2 e2 E' Y) d
if (currentFile!= null)
% X# ~( ~. b/ j) t, n{. d8 H$ e @) T( v
string currentFilePath = currentFile.Path;) }% F+ n' ]( @& F
string currentFolder = Path.GetDirectoryName(currentFilePath);
7 x/ s, G$ O( f l5 I Process.Start("explorer.exe", currentFolder);& q( M5 p7 o3 t. A
} ?7 N. K& G' k3 Z
版主,您好,指点一下这个需要获取路径要怎么写啊?
2 |' N" }$ g. \1 M( X) \ |
|