Creating a log file

Hi guys,

Nine years on and I need to revisit this post.

I haven't used this for several years now but I need to start using it again. Unfortunately it no longer seems to fully work. This is the code I am using for the latest version of AutoCAD.

@runmode HIDE
echo {date|yyyyMMdd} {time|HH:mm:ss} {filepath$} >> C:\Users\%username%\Documents\FileLogDWG.txt "C:\Program Files\Autodesk\AutoCAD 2018\acad.exe"  /P AutoCAD /Product "C3D" /Language "en-US"

When I run the command "C:\Program Files\Autodesk\AutoCAD 2018\acad.exe" /P AutoCAD /Product "C3D" /Language "en-US" from the Run prompt, AutoCAD opens as expected, so that's all good.

The first part of the command echo {date|yyyyMMdd} {time|HH:mm:ss} {filepath$} >> C:\Users\%username%\Documents\FileLogDWG.txt initially created and then appends to the log file so all is good there as well.

The issue I have is after double clicking on a DWG file, the file does not open, only the log file gets updated.

Any help will be much appreciated.

Regards

Blueroly