以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 选择文件或者文件夹 而不打开 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=136743) |
-- 作者:ts9277 -- 发布时间:2019/6/20 15:13:00 -- 选择文件或者文件夹 而不打开 Dim tb As Table=CurrentTable Dim r As Row=tb.current Dim ph As String=FileSys.GetParentPath(r("设变点检表")) Dim proc As new process proc.File=FileSys.GetParentPath(r("设变点检表")) proc.start 上面的代码是能自动打开相应的文件夹,在网上看到一条代码 System.Diagnostics.Process.Start("Explorer", "/select,c:\\Windows") 打开并选择c:\\Windows 代码要如何修改才能实现相同的功能呢, Dim tb As Table=CurrentTable Dim r As Row=tb.current Dim ph As String=FileSys.GetParentPath(r("设变点检表")) System.Diagnostics.Process.Start("Explorer", "/select,ph") \' 这样写无法打开相应的目录 这个目录或者文件路径的动态语句如何改,请老师帮忙看下,谢谢 |
-- 作者:有点甜 -- 发布时间:2019/6/20 15:57:00 -- 比如
Dim Proc As New Process |
-- 作者:ts9277 -- 发布时间:2019/6/21 10:15:00 -- 好的,谢谢老师,我试下,下面的代码也能实现 Dim tb As Table=CurrentTable Dim r As Row=tb.current Dim ph As String=r("设变点检表") Dim str As String="/Select," & ph System.Diagnostics.Process.Start("Explorer", str) |
-- 作者:FOTOER -- 发布时间:2021/11/7 22:34:00 -- ![]() |