Hi
I have two windows 7 pro machines that are not part of a domain. They are connected to a hub with net access and a NAS. I have a VBScript that maps folders on the NAS as network drives on the machines at logon and then runs some a program from the mapped drive. Currently I use the WScript.Sleep command to get the script to wait for a network connect before mapping the drives and then to wait again for the mapping before running the program. Is there a better way to do this - such a some code that will wait until these connections have been made, rather than just for a fixed amount of time?
I have two windows 7 pro machines that are not part of a domain. They are connected to a hub with net access and a NAS. I have a VBScript that maps folders on the NAS as network drives on the machines at logon and then runs some a program from the mapped drive. Currently I use the WScript.Sleep command to get the script to wait for a network connect before mapping the drives and then to wait again for the mapping before running the program. Is there a better way to do this - such a some code that will wait until these connections have been made, rather than just for a fixed amount of time?