I believe you just wrote your script file my friend, I would only recommend,
like you see at the AutoCAD command line, each command or entry on it's own
line with no additional spaces (leave an empty line if you need an extra
. Taking your posted example, it would look like this:
open
"R:\A40-P001.DWG"
filedia
0
cmddia
0
layout
S
and so on
--
Dean Saadallah
http://LTisACAD.blogspot.com
--