11-15-2015, 11:31 AM
I cannot test. Is it possible to map NAS to a drive letter? Then you can try this:
Macro map (connect) network drive2
Macro map (connect) network drive2
;Note: there are separate mappings for standard user and admin. If QM is admin, the mapping is not in Windows Explorer, and is not visible to non-admin programs.
Wsh.WshNetwork n._create
VARIANT v(1) user("...") password("...")
n.MapNetworkDrive("N:" "\\server\share\folder" v user password)
out dir("N:\file.exe")
10
;Wsh.WshNetwork n._create
;VARIANT v=1
n.RemoveNetworkDrive("N:" v v)