hello i'm looking for a better way to write this mapcar (or other advice or other way) my final result : (setq path_acad (strcat (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\" (vlax-product-key)) "ACADLOCATION") "\")) (setq file_scr (open (strcat path_acad "macro.scr") "w")) (setq temp2 nil) (mapcar '(lambda (x) (if (not temp2) (setq temp2 x ) (progn (write-line (strcat temp2 " " x ) file_scr ) (setq temp2 nil ) ) ) ) (list "ATTDIA" "0" "ATTMODE" "1" "ATTREQ" "1" ) ) (close file_scr ) Goal is to create a batch script (it works perfectly), but i want to replace my old : (write-line "BLIPMODE 0" fichier_scr ) (write-line "COORDS 1" fichier_scr ) (write-line "DELOBJ 1" fichier_scr ) (write-line "DISPSILH 0" fichier_scr ) (write-line "EDGEMODE 1" fichier_scr ) (write-line "ELEVATION 0" fichier_scr ) (write-line "EXPLMODE 1" fichier_scr ) (write-line "FACETRES 0.5" fichier_scr ) (write-line "FILLMODE 1" fichier_scr ) (write-line "GRIDMODE 0" fichier_scr ) (write-line "HIGHLIGHT 1" fichier_scr ) (write-line "INDEXCTL 0" fichier_scr ) etc.............. ...I hope, i did not miss my copy-past Bruno Toniutti (sorry for my english level)