When I double-click to a launch a certain .exe file, let's call it "myprogram.exe", it launches.
When I launch the same file in a .bat script, it doesn't - rather, it does (some windows flash), but then it proceeds to crash.
Script:
@echo offstart "myprogram""C:\Program Files (x86)\xyz\myprogram.exe"
I've tested the .bat file by replacing the .exe with other programs to see if they would crash, and they launch normally - so the issue seems to reside in the "myprogram.exe".
I've also gone into the .exe's properties and ran it in various compatibility modes, as well as checked "run this program as an administrator".
Any idea why this specific .exe keeps crashing when launching through a .bat command?
Thanks.