Hi gang,
I want to add a line of code to acad.lsp to overwrite the existing LICPAT.lic file with a different one.
I have been using this:
Code:
(vl-file-copy "Z:/AutoCAD 2018/LICPATH.lic" "C:/ProgramData/Autodesk/CLM/LGS/001J1_2018.0.0.F/LICPATH.lic" T)
Which actually appends the file, it does not overwrite it. so over time the LICPATH file reads:
SERVER oldserver 000000000000
USE_SERVER
SERVER newserver 000000000000
USE_SERVER
SERVER newserver 000000000000
USE_SERVER
Thought about using the SHELL command and got this far, but the spaces etc. in the paths are messing me up.
Code:
(command "SHELL" "copy Z:\\AutoCAD 2018\\LICPATH.lic C:\\ProgramData\\Autodesk\\CLM\\LGS\\001J1_2018.0.0.F\\LICPATH.lic /y")
Any help is, as always, much appreciated.
-JP