• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    Contributor
    Posts: 19
    Registered: ‎03-27-2012
    Accepted Solution

    accessing drives

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

    Please use plain text.
    *Expert Elite*
    dgorsman
    Posts: 3,278
    Registered: ‎10-12-2006

    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.


    Please use plain text.
    *Expert Elite*
    Posts: 1,191
    Registered: ‎12-17-2004

    Re: accessing drives

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

    nothin, try

     

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

     

    Henrique

    Please use plain text.