I have a file path im trying to capture in a text file however its not working and autocad is prompting back,
; error bad argument type: streamp nil
Im assuming its because of the slashbacks but Im not sure..
Herse the code sofar...
(defun C:GO () (SETQ ACADLSP (findfile "acad.lsp")) (setq f (open "C:\test.txt" "w")) (write-line ACADLSP f) (close f) )
Try to run autocad as administrator,
I was having the same problem, I could create file on "D:" , but could not on "C:".
I think that is your problem, because I think that you cannot create a file on "C:" if you don't run autocad as administrator.