If Command = "" Then
        If Dir(App.Path & "\temp.exe") <> "" Then Kill App.Path & "\temp.exe"
        FileCopy App.Path & "\read.exe", App.Path & "\temp.exe"
        pid = GetCurrentProcessId
        runline = App.Path & "\temp.exe " & CStr(pid)
        Shell runline, vbNormalFocus
        Exit Sub
    Else
        pid = val(Command)
        '等待程序结束
        Do
            Handle = OpenProcess(SYNCHRONIZE, 0, pid)
            CloseHandle Handle
            DoEvents
        Loop Until Handle = 0
        '在这里我可以直接kill read.exe但不能写read.exe是怎么回事?
     End If