Visual LISP, AutoLISP and General Customization

Reply
Contributor
nothin
Posts: 19
Registered: ‎03-27-2012
Message 1 of 3 (171 Views)
Accepted Solution

accessing drives

171 Views, 2 Replies
10-30-2012 02:22 PM

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"

*Expert Elite*
dgorsman
Posts: 5,106
Registered: ‎10-12-2006
Message 2 of 3 (167 Views)

Re: accessing drives

10-30-2012 02:31 PM 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.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


*Expert Elite*
hmsilva
Posts: 2,686
Registered: ‎12-17-2004
Message 3 of 3 (165 Views)

Re: accessing drives

10-30-2012 02:55 PM in reply to: nothin

nothin, try

 

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

 

Henrique

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community