61
Support Questions / Re: Use of Advanced HMI button to start a batch file
« on: June 24, 2021, 10:17:07 AM »Thanks dmroeder! As I look at the property of the button, for address_click, normally I give reference to the bit address. Where do I write the code, Process.Start (file path)?
Yeah sorry, I should have been more specific. As @MajorFault said, double click the button, this will will bring you to the code editor, specifically, the button click event. Put the code I mentioned in there. The "PathToBatchFile" is obviously the windows path to your file "C:\MyBatchFile.bat", process.start accepts a string, so the path will need quotes around it.