@ahmic/autoit-js
Version:
Node.js bindings for AutoItX3.dll
35 lines (34 loc) • 872 B
TypeScript
/**
* Removes a mapped network drive.
*
* @param device The local drive letter to unmap (e.g., 'Z:').
*
* @returns 1 if successful, 0 otherwise.
*
* @example
* ```typescript
* import { DriveMapDelSync } from '@ahmic/autoit-js';
*
* DriveMapDelSync('Z:');
* ```
*
* @see https://www.autoitscript.com/autoit3/docs/functions/DriveMapDel.htm
*/
export declare function DriveMapDelSync(device: string): number;
/**
* Removes a mapped network drive.
*
* @param device The local drive letter to unmap (e.g., 'Z:').
*
* @returns A promise that resolves to 1 if successful, 0 otherwise.
*
* @example
* ```typescript
* import { DriveMapDel } from '@ahmic/autoit-js';
*
* await DriveMapDel('Z:');
* ```
*
* @see https://www.autoitscript.com/autoit3/docs/functions/DriveMapDel.htm
*/
export declare function DriveMapDel(device: string): Promise<number>;