|
发表于 2024-11-4 23:24:17
|
显示全部楼层
本帖最后由 xinruyu369 于 2024-11-4 23:40 编辑 : g5 C3 _2 S' {. Y; {; P
' |5 \: f6 s# u' x8 O
% y* E# a; _4 \$ M9 }+ \
using System;
$ {% Y4 [' R, L F. nusing System.Diagnostics;
( B0 k7 P+ }$ F
/ r2 ^4 Y( l7 g: U0 g7 @ var currentFile = Mastercam.IO.FileManager;
" y) I% Z; U' K+ @! V3 V" iif (currentFile!= null)' b a& l) W; _
{
6 g+ w+ x) M* C2 z8 R; m string currentFilePath = currentFile.Path;
8 n+ l4 w7 M( |* f5 P& P string currentFolder = Path.GetDirectoryName(currentFilePath);
6 n; A d( e5 q) g Process.Start("explorer.exe", currentFolder);9 R) M+ C, Y4 ~% ?! [
}$ o9 P! i5 b% ]4 e, w
版主,您好,指点一下这个需要获取路径要怎么写啊?! v) v7 t$ |; ~% _
|
|