AdvancedHMI Software
General Category => Support Questions => Topic started by: Aparajit on June 18, 2021, 07:50:35 PM
-
Just wondering, whether I can use Advanced HMI in non PLC environment, executing a program, start a file etc.
Regards,
-
It's .Net so yes. Search the web and you will get tons of info.
-
Just wondering, whether I can use Advanced HMI in non PLC environment, executing a program, start a file etc.
Regards,
Process.Start(pathToBatchFile)
-
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)?
-
Just use a regular button. Drag and drop, double click and it will bring up the code.
-
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.