|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 4 B' w) j+ z; Q6 e1 V
3 L# {: J% n- x$ J9 |
+ ^4 q$ L+ v/ \+ d: ~" N- H# gusing System;/ L) ]! y3 _1 R4 q' d) T
using System.Diagnostics;
; l0 A& C0 N# o }/ X
9 o& T9 R' C6 ?) ~" W! i8 ~9 Z var currentFile = Mastercam.IO.FileManager;8 ?! e' P8 e3 W* _% I `; d
if (currentFile!= null)
/ w, n" F _ Y* g& M' e{
; I; {3 F$ [" V string currentFilePath = currentFile.Path;4 x P5 _$ ?; p9 S& H
string currentFolder = Path.GetDirectoryName(currentFilePath);
5 {$ |( n- x, ~% s; D Process.Start("explorer.exe", currentFolder);
3 V* D( P: m! A- d}; d, d: a! c+ Z! c+ A
版主,您好,指点一下这个需要获取路径要怎么写啊?0 G. A! q! Y2 e% E g: Y
|
|