Net Use Command, Is there anyway to have it timeout and Go To the next line in Batch file
Posted on 2008-06-26
We are using a batch file to connect to our Broadband Wireless Card and then our VPN. After that is done, we have some if statements that state if it connects to the server, then do this, otherwise, GO TO end. The problem we are facing is that when it is connected to the internet, and not the VPN, it will try to connect forever to the folder using the net use command. We would like it to time out after a certain point so it moves on in the batch file. Is this possible?