Agilent Technologies E5071C Manual page 1212

Hide thumbs Also See for E5071C:
Table of Contents

Advertisement

Consult your network administrator and enter the settings in the
same way as done in the Windows PC operating system. If you
enter an incorrect setting, an error might occur and the
program might be interrupted.
Disconnecting
1. Enter the drive letter for the shared folder (1), and then click
Disconnect (6).
2. Click Exit (7) to exit from the program.
Description of VBA Program
The program (object name: frmMapDrive) is described in detail below:
Sub CommandButton1_Click
This procedure is called when the user clicks the Map button. It checks
whether the drive letter is used by using the IsDriveNameInUse procedure.
Then the procedure connects the shared folder using the MapDrive
procedure if the drive letter is not used or otherwise displays a message to
show the drive letter is used.
Sub CommandButton2_Click
This procedure is called when the user clicks the Disconnect button. The
procedure disconnects the shared folder by using the DisconnectDrive
procedure.
Function IsDriveNameInUse
This procedure checks if the txtDrive.Text (the drive letter specified by 1)
is used.
Sub MapDrive
This procedure connects the shared folder as the txtDrive.Text (the drive
letter specified by 1) drive by using the parameters: txtShare.Text (the
share name specified by 2), txtUser.Text (the user name specified by 3),
and txtPasswd.Text (the password specified by 4).
Sub DisconnectDrive
This procedure disconnects the txtDrive.Text (the drive letter specified by
1) drive.
Sub CommandButton3_Click
Programming
1439

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents