Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7199

EXE crashes from batch file, but not when double-clicked?

$
0
0

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.


Viewing all articles
Browse latest Browse all 7199

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>