How to allow the client to download and execute a .bat or .exe file?

Luigi Viggiano

You can just put a link like this

<a href="/serverpath/runme.bat">execute runme</a>
When client clicks on it it will be asked to open the file (and execute it) or just to download it. This is general way to handle this (think about .exe installers... always you need to push on ok after choosing to execute the file instead of just download it)

[But see How to copy the file from Server side into Client ... for words of warning about security... -A]