[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Start Associated Application
Tip# 2206 By Leon Brumin On 01-May-2007
4
Rated By 1 users Downloaded : 167
Categories : Other
Software type : AutoCAD
Rename File To : Tip 2206: sturtappex.lsp
Utility function accepts a filename, then initiates a Windows applications associated with the file type.

Start Associated Application (Tip #2206) from Leon Brumin is a utility function that accepts a filename and then initiates a Windows applications associated with the file type. This is just like double-clicking on a file in the Windows Explorer program. Files with extensions recognized by Windows cause the associated application to start. This function makes use of the VLAX functions inside Visual LISP to create a shell object that is then started with the given filename. The shell object is the avenue to the Windows operating system where the open method accepts a filename and starts up the application. Once started, the application object is released from Visual LISP, and the application can continue to run on its own. For programmers looking for an example of how to start up a spreadsheet or text editor from inside LISP, Leon comes through for you with this easy way.

 

 

Average Rating:
4


User comments