|
|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑
, u# v. a- N- J* d `) n. v/ S9 x0 @7 G- n1 u
" Z- V) g- n) {, p0 z) V3 |using System;
$ d& g- Y0 P/ z) ^% x# z8 Qusing System.Diagnostics;
x% Q; x# `. `
, g* X, U, W5 O* ?6 `) X: E8 X! c var currentFile = Mastercam.IO.FileManager;* d. V8 u. p1 i* K2 n
if (currentFile!= null)
( y6 t' V2 K$ ^: Z# ^{8 T$ ~2 u* @4 _0 N8 j
string currentFilePath = currentFile.Path;
, x/ R& V0 {5 p2 n. a/ O/ d string currentFolder = Path.GetDirectoryName(currentFilePath);
# `9 _' l% |' K7 V5 U# I Process.Start("explorer.exe", currentFolder);, O- p7 r2 _) w2 Y! n: }1 R
}
; _ ] I+ z/ x, ~版主,您好,指点一下这个需要获取路径要怎么写啊?; v& E9 G- R X; ^; {6 J( f
|
|