Good day,
Hoping to get some advice with the below.
When I paste the path below into CMD it operates.
"C:\Program Files\Autodesk\AutoCAD 2018\accoreconsole.exe" /i "Z:\TEST\FILENAME TEXT\DD-C-0001.dwg" /s "Z:\TEST\FILENAME TEXT/PLOT.scr"
Battling to run this through VBA. The below seems to be doing half the command correctly.
VBA.Shell "C:\Program Files\Autodesk\AutoCAD 2018\accoreconsole.exe /i ""Z:\TEST\FILENAME TEXT\DD-C-0001.dwg""", vbNormalFocus
When attempting the full command below. It is not operating.
VBA.Shell "C:\Program Files\Autodesk\AutoCAD 2018\accoreconsole.exe /i ""Z:\TEST\FILENAME TEXT\DD-C-0001.dwg /s """"Z:\TEST\FILENAME TEXT/PLOT.scr""""""", vbNormalFocus
I understand this would traditionally be run through a batch file which I am attempting to avoid so I can add variables down the line.
Any advice would be highly appreciated.
Thank You
Hoping to get some advice with the below.
When I paste the path below into CMD it operates.
"C:\Program Files\Autodesk\AutoCAD 2018\accoreconsole.exe" /i "Z:\TEST\FILENAME TEXT\DD-C-0001.dwg" /s "Z:\TEST\FILENAME TEXT/PLOT.scr"
Battling to run this through VBA. The below seems to be doing half the command correctly.
VBA.Shell "C:\Program Files\Autodesk\AutoCAD 2018\accoreconsole.exe /i ""Z:\TEST\FILENAME TEXT\DD-C-0001.dwg""", vbNormalFocus
When attempting the full command below. It is not operating.
VBA.Shell "C:\Program Files\Autodesk\AutoCAD 2018\accoreconsole.exe /i ""Z:\TEST\FILENAME TEXT\DD-C-0001.dwg /s """"Z:\TEST\FILENAME TEXT/PLOT.scr""""""", vbNormalFocus
I understand this would traditionally be run through a batch file which I am attempting to avoid so I can add variables down the line.
Any advice would be highly appreciated.
Thank You