You could echo the results out to a text file and do an FC on the results compared to a file that has "The command completed successfully, etc.). You could then errorlevel the result to determine whether or not the drive was really mapped. For that matter, does "net use" return an errorlevel? If so, then there you go.
Dan . . . Dan Arsenault Network Administrator Siemens VDO Automotive Inc. 700 Park Avenue East Chatham, Ontario, Canada Voice: 519-436-3839 Fax: 519-436-3641 Email: [EMAIL PROTECTED] The message is intended only for the use of the intended recipient(s). It is confidential and may also be privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient(s), you are hereby notified that any review, retransmission, conversion to hard copy, copying, circulation or other use of this message is strictly prohibited and may be illegal. If you are not the intended recipient(s), or have received this message in error, please notify the sender immediately by return E-mail and delete this message. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam McKenzie Sent: Thursday, July 15, 2004 4:36 PM To: '[EMAIL PROTECTED]' Subject: [WhatsUp Forum] How to map a network drive and see if it was successful Hi! Does anyone know how to map a network drive and see if it was successful in WUG? I would like to call a batch file (using a net use command) and see if "The command completed successfully." was returned. Thanks! Sam A. McKenzie Quantum Corporation 719-536-5854 Please visit http://www.ipswitch.com/support/mailing-lists.html to be removed from this list. An Archive of this list is available at: http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/ Please visit http://www.ipswitch.com/support/mailing-lists.html to be removed from this list. An Archive of this list is available at: http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/
