Maps a network drive to a local drive letter.
The local drive letter to map.
The network share to map to.
Optional flags to control the mapping behavior.
Optional username for authentication.
Optional password for authentication.
"1" if successful, "0" if failed.
import { DriveMapAdd, DriveMapFlag } from '@ahmic/autoit-js';DriveMapAdd('Z:', '\\server\share', DriveMapFlag.Authentication, 'user', 'password'); Copy
import { DriveMapAdd, DriveMapFlag } from '@ahmic/autoit-js';DriveMapAdd('Z:', '\\server\share', DriveMapFlag.Authentication, 'user', 'password');
https://www.autoitscript.com/autoit3/docs/functions/DriveMapAdd.htm
Maps a network drive to a local drive letter.