Is it possible to run an .exe or .bat file on ‘onclick’ in HTML August 20, 2023 by Tarik No, that would be a huge security breach. Imagine if someone could run format c: whenever you visted their website.