First of all: Stick to 1 thread per issue, as you have created a duplicate thread, here.
...and as I said there: Does the directory get created? Looking at the code, it doesn't.
As there's an issue there with creating it. (as mentioned before, you're creating it with a double \
Strangely you do it correctly for the check & the write (but you can't write to a non-existing directory)
The check&create is a bit weird too.
You check if a directory exists: (strcat (getvar 'DWGPREFIX) "Quick Plots")
If not, you try to create a different directory (???) (strcat (strcat (getvar 'DWGPREFIX)) "\\CAD EXPORTS\\")
(with the red being obsolete/erroneous)
so, it will try to create the folder, even if it does already exist. Just as long as the other one doesn't. (?)
Why not check for "CAD EXPORTS" itself?
and...
(setvar "cmdecho" 1) ;Play nice and put things back
(setvar "filedia" 1) ;where they came from
You're actually not doing that which the comments say. You are forcing them on, instead of "putting them back". If you realy want to play nice...
At the start add:
(setq cmdecho (getvar 'cmdecho)
filedia (getvar 'filedia)
)
and change those two into:
(setvar "cmdecho" cmdecho) ;Play nice and put things back
(setvar "filedia" filedia) ;where they came from