grantm Posted August 16, 2022 Posted August 16, 2022 Hello, I have a batch file I want to launch from our CAD ribbon, is this possible? Quote
ronjonp Posted August 16, 2022 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
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.