grantm Posted August 16, 2022 Share Posted August 16, 2022 Hello, I have a batch file I want to launch from our CAD ribbon, is this possible? Quote Link to comment Share on other sites More sharing options...
ronjonp Posted August 16, 2022 Share Posted August 16, 2022 (edited) 8 hours ago, grantm said: Hello, I have a batch file I want to launch from our CAD ribbon, is this possible? Try this: (defun _openfile (file / sh) (if (findfile file) (progn (setq sh (vlax-get-or-create-object "Shell.Application")) (vlax-invoke-method sh 'open (findfile file)) (vlax-release-object sh) ) ) ) (_openfile "C:\\Path\\To\\File\\cmd.bat") Edited August 16, 2022 by ronjonp 1 Quote Link to comment Share on other sites More sharing options...
BIGAL Posted August 21, 2022 Share Posted August 21, 2022 Why not just (startapp batchfile) 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.