excel vba - [VBA]how to check if internet disk could be accessed -


I have an internet disk that contains passwords and IDs, and want to type the code to access them.

My code is as follows

  set wsh = WScript.CreateObject ("WScript.Shell") returnvalue = wsh.run ("Net Usage Address / Id Password", 0 , True)  

But sometimes the Internet is slowed or the password is changed, WS did not respond and code

  returnvalue = wsh Run ("Net Usage Address / Id Password", 0, True)  

Is it possible to modify this code, it can check that the disk can be accessed and one Wait for fixed time Like it passes to the disk takes a lot of time to react?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -