Originally Posted by
trevor206
mine gets an error Error 1 Name 'sYourCommand' is not declared.
can you help me. (i probably sound really noob.
)
woops sorry my mistake
add this to to the top of that code
Code:
Dim sYourCommand As String
so it should now look like this:
Code:
Dim sYourCommand As String
sYourCommand = "ipconfig/flushdns"
Shell("cmd /c " & sYourCommand, vbHide)
sYourCommand = "ipconfig/release"
Shell("cmd /c " & sYourCommand, vbHide)
sYourCommand = "ipconfig/renew"
Shell("cmd /c " & sYourCommand, vbHide)