Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

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

accessing drives

177 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"

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

*Expert Elite*
dgorsman
Posts: 5,596
Registered: ‎10-12-2006
Message 2 of 3 (173 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: 3,172
Registered: ‎12-17-2004
Message 3 of 3 (171 Views)

Re: accessing drives

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

nothin, try

 

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

 

Henrique

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!