Author Topic: PROBLEM WITH TEMP FOLDER FILE  (Read 105 times)

0 Members and 1 Guest are viewing this topic.

eduardoceliz

  • Mosquito
  • Posts: 4
PROBLEM WITH TEMP FOLDER FILE
« on: September 13, 2020, 08:49:37 PM »
PREVENT THE FILE FROM BEING DELETED FROM THE TEMP FOLDER, SAID FILE IS CREATED WITH THE HELP OF LISP.

WHAT I AM LOOKING FOR IS Q THE FILE IS CREATED AND NOT DELETED BY PROGRAMMING IT ONLY WITH THE HELP OF LISP

BIGAL

  • Swamp Rat
  • Posts: 516
  • 30 + years of using Autocad
Re: PROBLEM WITH TEMP FOLDER FILE
« Reply #1 on: September 13, 2020, 09:27:06 PM »
I guess your talking about this

Code: [Select]
(setq fo (open (setq fname (vl-filename-mktemp "" "" ".dcl")) "w"))

(setq fo (open (setq fname "D:\\acadtemp\\myfile.dcl") "w"))

(setq fo (open "D:\\acadtemp\\myfile.dcl" "w"))

(setq fo (open fname "w"))
A man who never made a mistake never made anything