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

    Function DriveMapGet

    • Retrieves the network share associated with a local drive letter.

      Parameters

      • device: string

        The local drive letter to query.

      • characterCount: number = 1024

        The maximum number of characters to retrieve (default is 1024).

      Returns string

      The network share associated with the local drive letter, or an empty string if not found.

      import { DriveMapGet } from '@ahmic/autoit-js';

      const networkShare = DriveMapGet('Z:');

      console.log(networkShare); // Output: "\\server\share"