I need to create a button that will copy the full pathnames of the selected file and then paste that pathname into a predefined txt file, prefixing it with the current date & time.
i.e.
20091027 12:10:45 f:\folder\filename.abc
When I select another file and hit the new button this file should also be added to the next line of the same txt document.
Ideally I would like to automatically create a log whenever I launch a certain filetype from Directory Opus but I can't imagine this being possible!!!
This will append each filename to a file called C:\Temp\FileLog.txt (change this path as desired)
To have it happen automatically when you launch a filetype, you could edit the double-click setting for the FileType in question, to run this function first before launching the file.
Can I hide or exit the command prompt after I run the DO command...? Currently I have to exit AutoCAD before the command prompt disappears, which I find quite irritating!!!
Further to the above, is it possible to add the same functionality when I right click on a file(s) and select "open" rather than double clicking...?
Currently, the only way to add to the log file is by double clicking a single file or pressing enter when multiple files are selected. I prefer to use the "open" option rather than hitting enter on multiple files.
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.
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.