vb Shell "cmd ...问题

那位大哥把以下的BAT内容转为用Shell "cmd 执行
taskkill /f /im 迷你型聊天软件.exe
copy "up.exe" "迷你型聊天软件.exe"
del "up.exe"
Private Sub Command1_Click()
Shell "cmd /c taskkill /闹睁f /im 迷你型聊天软件.exe & copy up.exe 迷你型聊橘颤天软件圆弯败.exe /y & del up.exe", vbHide
End Sub

每条命令用 & 符号连接即可。
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Private Sub Form_Click()
Shell "taskkill.exe /im 迷你型聊天软件.exe/f", vbHide
Kill App.Path & "\迷你型聊薯燃派天段毕软件.exe"
Sleep 3000
FileCopy App.Path & "\up.exe", App.Path & "\迷你型数贺聊天软件.exe"
Kill App.Path & "\up.exe"
End Sub
copy "up.exe" "迷你型聊天软件.exe"
rm "up.exe"
这好办,最近我才做过类似的程序

Open "D:\abc.txt" For Output As #1
Print #1, "taskkill /f /纳数im 迷你型聊天软件.exe"
Print #1, "copy" & " " & Chr("34") & "up.exe" & Chr("34") & " " & Chr("34") & "迷你型此余聊天软件.exe" & Chr("34")
Print #1, "del" & " " & Chr("34") & "up.exe" & Chr("34")
Close (1)

上面3句其实就是把你想执行的DOS操作写进一个文本文件,chr("34")是森茄滚输出引号

close(1) 关闭文件不能少,这样才能重命名

name "D:\abc.txt" as "D:\abc.bat"

shell("D:\abc.bat")

这样就能直接执行了
shell /c cmd taskkill taskkill /f /im 迷你型散李聊天软件.exe
其他如法冲裤迟炮制就行。纯旅