Since you haven't provided your actual code, it is a bit tricky to guess what is going on. Based on my own experience, I once faced this problem (filename.pl running correctly but filename.exe not being executed) because the path I had defined for images and scripts being used in my script was not correct for the exe.