Now I really don't know???? What version of ACad? Checked the ACADDOC2008.LSP file (Vanilla 2008 ), here's the relevant extracts:
Code:
(defun _autoqload (quoi app cmdliste / qapp symnam)
(setq qapp (strcat "\"" app "\""))
(setq initstring "\nInitializing...")
(mapcar
'(lambda (cmd / nom_cmd)
(progn
(setq nom_cmd (strcat "C:" cmd))
(if (not (eval (read nom_cmd)))
(eval
(read (strcat
"(defun " nom_cmd "( / rtn)"
"(setq m:err *error* *error* *merrmsg*)"
"(if (ai_ffile " qapp ")"
"(progn (princ initstring)"
"(_auto" quoi "load " qapp ") (setq rtn (" nom_cmd ")))"
"(ai_nofile " qapp "))"
"(setq *error* m:err m:err nil)"
"rtn)"
))))))
cmdliste)
nil
)
(defun autoload (app cmdliste)
(_autoqload "" app cmdliste)
)
(defun _autoload (app)
; (princ "Auto:(load ") (princ app) (princ ")") (terpri)
(load app)
)
(defun ai_ffile (app)
(or (findfile (strcat app ".lsp"))
(findfile (strcat app ".exp"))
(findfile (strcat app ".exe"))
(findfile (strcat app ".arx"))
(findfile app)
)
)
(defun ai_nofile (filename)
(princ
(strcat "\nThe file "
filename
"(.lsp/.exe/.arx) was not found in your search path folders."
)
)
(princ "\nCheck the installation of the support files and try again.")
(princ)
)
Nowhere can I find anything trying to remove "\\" from the filename. And BTW, looking at the code it seems that it shouldn't be necessary to add an extension.
However, my comment previously was in error ... it searches for .LSP, .EXP, .EXE, .ARX, and then whatever you've specified yourself. This may be why I "thought" it needed an extension if pathed ... I usually compile my final apps to VLX of FAS, then had to give those extensions explicitly to autoload ... now I know why!
If you do have something strange happening in your ACADDOC20##.LSP, you shouldn't modify it. Rather just redefine the offending function just before you call autoload. You could even save to orriginal to a new name and revert it back after you've finished ... now that would be "good" programming practise!