|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 ) u L: `) N! o% n
" t3 T) D' K0 X: Q5 M `
# `) a) S) p5 xusing System;! V) c" O! x' v! W* ~9 B' {: d
using System.Diagnostics;4 s% ^, [# v* J& d
) w" G1 X' T& Y6 a
var currentFile = Mastercam.IO.FileManager;
( H* l& Y8 j6 [; {' b. J+ ^if (currentFile!= null)
2 S. z+ R V$ p3 J3 G; d% |7 u{# L5 q7 h# U) p3 E. O n" Y+ h, s
string currentFilePath = currentFile.Path;6 W: E' K9 u0 T3 w& K
string currentFolder = Path.GetDirectoryName(currentFilePath);1 T4 y8 _1 ^0 l
Process.Start("explorer.exe", currentFolder);
' l* c$ v$ ^. |1 N4 F. d}
$ u6 j4 L5 {; F: B- P6 S8 Z版主,您好,指点一下这个需要获取路径要怎么写啊?% n8 T+ T( m% z) D
|
|