Just a long shot for this group who may tinker more than the default group.
Anyone know if I can path to a unc 'share' name rather than a unc name or drive letter??
eg I know I can use;
\\server\cad\directory\mine...
or map it to L:\directory\mine
but I dont seem to have success with \\server\cad$\.... which is the actual share.
Cheers, Peter
@CADD-Co wrote:Just a long shot for this group who may tinker more than the default group.
Anyone know if I can path to a unc 'share' name rather than a unc name or drive letter??
eg I know I can use;
\\server\cad\directory\mine...
or map it to L:\directory\mine
but I dont seem to have success with \\server\cad$\.... which is the actual share.
Cheers, Peter
For the "sharename"
(defun _NetDrive (/ WscrptO Driveletter NDrive)
(setq WscrptO (vlax-create-object "WScript.Network")
Driveletter (vlax-invoke WscrptO 'EnumNetworkDrives)
)
(repeat (setq i (vla-get-length Driveletter))
(setq NDrive (cons (vla-Item Driveletter (setq i (1- i)))
NDrive))
)
(vlax-release-object WscrptO)
NDrive)
HTH