I'm sure someone has run into something like this before. Google has not been my friend either. I used (setq SetFile (open TextFile "W")) to open a file. While the file was open for writing, I hit ESC. (setq SetFile (close SetFile)) never got issued and the variable SetFile was set to NIL. Now, (setq SetFile (open TextFile "W")) will only return NIL and since SetFile was set to NIL, (setq SetFile (close SetFile)) gives a "bad argument type: streamp nil" error. This was in a testing phase and I hadn't gotten an ERROR trap set up. So, the file was left open by AutoCAD and I cannot move, rename nor delete it. I know that (open TextFile "W") gets the {name} "c:myfile" {mode} :OUTPUT {id} <random number> and {position} 0 . Is there a way to set the mode to :CLOSE ? Will that even work? When I do a (setq SetFile (open TextFile "R")) on the file, it gives the same info as above, but also the field {EOF} nil .
Also, I have tried closing and rebooting. I have also tried using the CMD method and fileunlocker won't work for a file on the server.
Thanks to everyone that takes the time to look at this.