in reply to .pl working fine but .exe not works

You'll probably have to wrap it around a dos batch script or simply call it as perl yourfile.pl ...