You could try: :Try_again timeout 5 net use Q: \\server\share if NOT exist Q:\. Goto Try_again -----Original Message----- From: Minero Hector B DLVA [mailto:MineroHB@xxxxxxxxxxxxx] Sent: woensdag 30 oktober 2002 20:58 To: 'thin@xxxxxxxxxxxxx' Subject: [THIN] Re: net use command I do't think timeout does what I want, which is to try to connect to a share within a specific time period, say 5 seconds. If it cannot connect within 5 seconds, just quit and go to the next line. timeout 5 net use Q: \\server\share will not do the job. Thanks, Hector- -----Original Message----- From: Jim Kenzig [mailto:jimkenz@xxxxxxxxxxxxxx] Sent: Wednesday, October 30, 2002 2:08 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: net use command No but you can use the timeout.exe command frome the resource kit in the batch before you run it http://thethin.net/timeout.zip JK -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On Behalf Of Minero Hector B DLVA Sent: Wednesday, October 30, 2002 1:47 PM To: Thin (E-mail) Subject: [THIN] net use command Hi all, Is there a timeout option for the "net use" command? We're auto-mapping a drive to a share on a samba server, but the samba server sometimes hangs; therefore making the logon script take longer to execute. Any workaround? I'm using the command: net use Q: \\server1\share Thanks, _________________________________ Hector Minero NSWCDD Code K55 Ph: (540)653-8859 Fax:(540)653-8575 *********************************************** Visit Jim Kenzig of thethin.net at the Emergent Online Booth #26 at Citrix Iforum 2002! Register now at: http://www.citrixiforum.com/registerNow.html *********************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link. http://thethin.net/citrixlist.cfm *********************************************** Visit Jim Kenzig of thethin.net at the Emergent Online Booth #26 at Citrix Iforum 2002! Register now at: http://www.citrixiforum.com/registerNow.html *********************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link. http://thethin.net/citrixlist.cfm *********************************************************************** Aan dit bericht kunnen geen rechten worden ontleend. Ministerie van Justitie. *********************************************************************** *********************************************** Visit Jim Kenzig of thethin.net at the Emergent Online Booth #26 at Citrix Iforum 2002! Register now at: http://www.citrixiforum.com/registerNow.html *********************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link. http://thethin.net/citrixlist.cfm