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

accessing drives

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
nothin
364 Views, 2 Replies

accessing drives

I have an autolisp program that accesses an excel database.

 

The excel database file is located on a network drive at the company I work at.

 

The way it works is that each computer has a letter designation for a specific drive (i.e. C:\ , D:\). The letter designation is mapped to a specific network drive. This mapping is the "real" location of the drive.

 

For example one of the drives I have is G:\ . It is mapped to \\pafs02\vol2\dept\re\res .

 

In my lisp file I currently use the address G:\ to find the excel database. However, I would like to use the address \\pafs02\vol2\dept\re\res . This way if somone has this address tied to a different letter designation, say D:\, they will still be able to access the file.

 

But when I put the address, \\pafs02\vol2\dept\re\res , in my lisp program it gives me an error saying it cannot find the file.

 

Any ideas of why this is and how I can fix it?

 

Note: in my lisp code the address is written as "\\\pafs02\\vol2\\dept\\re\\res"

2 REPLIES 2
Message 2 of 3
dgorsman
in reply to: nothin

Try a quad-backslash at the start; each pair is a format+character.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 3 of 3
hmsilva
in reply to: nothin

nothin, try

 

"//pafs02/vol2/dept/re/res"

 

Henrique

EESignature

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

Post to forums  

Autodesk Design & Make Report

”Boost