VB怎么实现查找目标,就象快捷方式的查找目标一样.

解决方案 »

  1.   

    什么意思?
    是COMMON DIALOG意思吗?
      

  2.   

    Shell "Explorer " & file, vbNormalFocus
      

  3.   

    是不是像鏈接
    Dim path as string
    Private Declare Function shellexecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpdirectory As String, ByVal nShowCmd As Long) As Long '鏈接
    Private Const sw_shownormal = 1
    Private Const sw_showminimized = 2path="c:\arcldrer.exe"
    Call shellexecute(Me.hwnd, "open", path, vbNullString, vbNullString, sw_shownormal)
      

  4.   

    不知道是不是开启某个文件夹 ???
    on error resume next
    shell "explorer , c:\"
      

  5.   

    Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)Shell "Explorer " & filepath,vbNormalFocus
    Sleep 1000
    SendKeys file
      

  6.   


        如果还有不懂意思的朋友,请随意查看一个快捷方式 单击查找目标功能 
        谢谢楼上的朋友提供的方法, 可以实现,但总觉得不太安全!不知道WINDOWS有没有专用的API来实现这个功能.
      

  7.   

    小弟的意思是要查找一个特定文件 可以自动打开一个IE并把焦点设在这个文件上
    就象快捷方式的查找目标一样.-----------------
    听说WIN的Explorer支持一个参数,有了这个参数就能定位文件。
      

  8.   

    Shell "explorer.exe /select,F:\Downloads\sql.chm", vbNormalFocus