I am currently searching for create a button in my QV application which launch another application/batch file on my server.
All is alright when I am in QV desktop mode on the QV server but it doesn't work when I am accessing from the Webserver portal (Ajax). The web server sends the .cmd file to my web browser instead of launching it on the server.
Do you have an idea about how run my cmd file on the server ?
Use the Supporting Tasks in the QMC, System, Supporting Tasks, External Program in the Server to call to your BAT or CMD files, and set the button to use the QMSEDX.exe tool that in turn triggers the supporting task by its name and password. It's not the most beautiful way but probably the most straightforward.
You will need to license the Publisher service for that. I assumed you already had it. If you don't' have it nor are intended to get it, then you should use the Windows Taks Scheduler instead, but this has nothing to do with QlikView itself.
Anyway, if you only want a button to trigger a command, you can do that but assigning the action External, Launch to the button, then set the correct path to the .BAT or .CMD file.
It's not a question of permissions but of functionality in the browser. If you run the Ajax client using Internet Explorer (not Plugin) this will prompt or run the .BAT or .CMD file, depending on how you have your browser configured (just tested).
If you use any other browser, that will simply not work.