I'm using net use x: "\\DEVICE\SHARE" /persistent:no in a batch file to connect to shares at start up. However, sometimes if I am offline or if the server/device is offline the command will hang for a few minutes before failing. When I have the command running multiple times sequentially, this can take a long time. Is there a way to get computer to check that the remote device is available before trying to mount it?
|
| ||||
|
feedback
|
|
Here's a workaround that could work in your case: try to ping the device before trying to You can do that easily enough in a
The | |||
|
feedback
|
