- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
There may be a much easier way to acheive this simple task, and, if there is, I am certainly open to suggestions. I am trying to create a macro that will open up an image file (i.e. - a type of quick help file) using Windows Paint. I had rather use the Windows Image Viewer but it seems to be a bit more complicated since it has to use the rundll32.exe to start the program. The code I am using is listed below but it does not work. However, I can type in the same code at the command line, with the exception of using forward slashes in my source file path, and it works perfectly. Once I got it to work from the command line, I simply copy/paste it to my menu macro and changed the back slashes to forward slashes in the sourse file path, since AutoCAD looks at a backslash as a "pause" in a macro, but the macro will does not work. The code info I have been using is as follows:
Command line code that works: (startapp "c://windows/system32/mspaint.exe" "m:\\quickhelps\\qh-end-conditions.jpg")
Macro code that does not work: (startapp "c://windows/system32/mspaint.exe" "m://quickhelps//qh-end-conditions.jpg")
Many thanks for the assistance!
Solved! Go to Solution.