|
-
December 3rd, 2008, 06:24 PM
#1
Dos Commands Don't Wait for finish
Seems they all run at once. I am a super-noob at this so my code is simple... How can I get multiple commands to run one after the other?
I have googled the heck out of this, but the code I see looks nothing like mine....:
Public Class ChangeDesktop
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim User As String
User = TextUser.Text
Dim File As String
File = TextFile.Text
Shell("cmd /c " & "attrib -r " & "c:\docume~1\" & User & "\locals~1\temp\Echowall.bmp")
Shell("cmd /c " & "del" & "c:\docume~1\" & User & "\locals~1\temp\Echowall.bmp")
Shell("cmd /c " & "rename" & File & "Echowall.bmp")
Shell("cmd /c " & "move /y echowall.bmp " & "c:\docume~1\" & User & "\locals~1\temp\")
Shell("cmd /c " & "attrib +r" & "c:\docume~1\" & User & "\locals~1\temp\Echowall.bmp")
Message.Show()
End Sub
End Class
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|