Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

server 'shares' in search path

1 REPLY 1
Reply
Message 1 of 2
CADD-Co
249 Views, 1 Reply

server 'shares' in search path

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

1 REPLY 1
Message 2 of 2
pbejse
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

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost