|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
* @' ~. @* _- v3 \2 Z& d/ f8 I1 A6 M& H$ R
/ _! |1 t# G9 n a0 M6 Kusing System;. Z$ g1 N' g& j7 j
using System.Diagnostics;
' o2 X/ W$ n5 X; {$ |
/ \ L; W4 `. \ }: m+ F: s var currentFile = Mastercam.IO.FileManager;
7 F0 k/ J( @' S* X5 P# eif (currentFile!= null)" {( Z. _# d( M8 M5 r3 b: p
{. r! c+ ]% |2 @. p1 n2 d) d- ?' r
string currentFilePath = currentFile.Path;
& x: `4 ?2 ]* K$ t# D string currentFolder = Path.GetDirectoryName(currentFilePath);& G+ W5 v( Z1 t g1 n- }
Process.Start("explorer.exe", currentFolder);! S# J1 B& _1 O w0 q
}# A; w) n. Q6 v# Q
版主,您好,指点一下这个需要获取路径要怎么写啊? ~3 @! G% R8 }+ D1 @/ b
|
|