We have user folders on severall servers, now I want the user menu's to be stored on the network so their home folder depends on what server it's located on. I tried using the vl-file-directory-p command but it doesn't seem to work.
Even worse, as soon as the userfolder is found I want to let the script check for a file called user.cuix in the Acad folder and if it doesn't excists copy it from another location to that folder (if possible).
This is what I got so far:
(setq UserName (getvar "loginname"))
(setq RootZW "\\\\users\\zw\\")
(setq RootVL "\\\\users\\vl\\")
(setq Company "\\\\CADConf\\ACAD13\\")
(if (vl-file-directory-p (strcat RootZW UserName))
(setq AcadMap (strcat RootZW UserName "\\acad\\")
(if (vl-file-directory-p (strcat RootVL UserName))
(setq AcadMap (strcat RootVL UserName "\\acad\\")
(setenv "MenuFile" (strcat AcadMap "user.cuix"))
Next to this we have 4 other options as well, but to keep it short I left it at the first 2.
Access a broad range of knowledge to help get the most out of your products and services.
Download & InstallationGetting your Software