@ahmic/autoit-js
    Preparing search index...

    Function DriveMapAdd

    • Maps a network drive to a local drive letter.

      Parameters

      • device: string

        The local drive letter to map.

      • share: string

        The network share to map to.

      • flags: DriveMapFlag = DriveMapFlag.Default

        Optional flags to control the mapping behavior.

      • username: string = ''

        Optional username for authentication.

      • password: string = ''

        Optional password for authentication.

      Returns string

      "1" if successful, "0" if failed.

      import { DriveMapAdd, DriveMapFlag } from '@ahmic/autoit-js';

      DriveMapAdd('Z:', '\\server\share', DriveMapFlag.Authentication, 'user', 'password');