Foxtable(狐表)用户栏目专家坐堂 → 选择文件或者文件夹 而不打开


  共有2151人关注过本帖平板打印复制链接

主题:选择文件或者文件夹 而不打开

帅哥哟,离线,有人找我吗?
ts9277
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:童狐 帖子:211 积分:1948 威望:0 精华:0 注册:2017/3/6 20:47:00
选择文件或者文件夹 而不打开  发帖心情 Post By: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") ' 这样写无法打开相应的目录 
这个目录或者文件路径的动态语句如何改,请老师帮忙看下,谢谢

 回到顶部