Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Contributor
CADD-Co
Posts: 23
Registered: ‎05-06-2008
Message 1 of 2 (99 Views)

server 'shares' in search path

99 Views, 1 Replies
05-23-2012 06:17 PM

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

*Expert Elite*
pbejse
Posts: 2,467
Registered: ‎11-24-2009
Message 2 of 2 (91 Views)

Re: server 'shares' in search path

05-23-2012 10:29 PM in reply to: CADD-Co

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


\\\\server\\cad\\....

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

 

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.