vb  怎样调用系统运行,磁盘碎片整理对话框,?

解决方案 »

  1.   

    看看是哪個EXE,然後用shell函數。
      

  2.   

    Option Explicit
    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 Sub Command1_Click()
    ShellExecute Me.hwnd, "open", "C:\WINDOWS\System32\dfrg.msc", 0, 0, 0
    End Sub
      

  3.   

    shell 不行呀,试过了比如我要调用 windows\system32\dfrg.msc 这样就不行了