For a time ago I wrote something like this in order to change color of a layer in many CAD files:
(Command "open" "File namn1" "_layer" "Color" 8 "layername" "qsave" Close")
(Command "open" "File namn2" "_layer" "Color" 8 "layername" "qsave" Close")
(Command "open" "File namn3" "_layer" "Color" 8 "layername" "qsave" Close")
.
.
These rows were saved in a file and could be loaded and run.
But I do not remember is what kind of file it should be saved and how to load it into Autocad!
I used MAP but now using C3D.
Another problem is a system variable called SDI, what is that?
I know this could be done in other ways but this solution worked for me and I rather continue using it!