Does Windows CE support batch files (.bat) and if yes, how to execute them from zenOn?
yes, generally Windows CE supports batch files, however not on all CE Terminals, the file type *.bat is correctly registered as an executable. By adding the following entries to the registry on the CE terminal, this can be done by hand. Do not forget to save the registry on the CE terminal persistently after making the changes!
[HKEY_CLASSES_ROOT\.bat]
@="cmdfile"
[HKEY_CLASSES_ROOT\cmdfile]
[HKEY_CLASSES_ROOT\cmdfile\DefaultIcon]
@=""\Windows\cmd.exe""
[HKEY_CLASSES_ROOT\cmdfile\Shell]
[HKEY_CLASSES_ROOT\cmdfile\Shell\Open]
[HKEY_CLASSES_ROOT\cmdfile\Shell\Open\Command]
@=""Windows\cmd.exe /c %1""
in zenOn by using the function "start program", batch files can be executed through the cmd.exe directly, using the parameters displayed in the screenshot.
This is a migrated post! Originally posted on 17.09.2007 by user markclemens. Please be aware that information can be outdated.