V5 beta Sep-17-2025 available now Sticky

 From:  Michael Gibson
11803.63 In reply to 11803.62 
Hi feirui445,

re:
> How to add code in MOI3D to run batch files (.bat) in WIN10?

You can set up a shortcut key that will launch a batch file when the key is pressed, is that what you want?

Put this as the "Command" part of the shortcut key (note use additional backslash \ because that is the escape character in javascript):

script: moi.filesystem.shellExecute( 'c:\\scripts\\test.bat' );

- Michael