I need to make a launcher that executes a file and then exits when i use this i get a message saying Do you wish to terminate batch job y/n. or something like that. does anyone know a way to make it close after it has executed the program. I am currently using the script below.
@echo off
%~dp0
Program.exe
The %~dp0 is causing the batch file to run itself again. I think you want pushd %~dp0
to change the directory to the location of the batch file. I'd remove the . from the end of program.exe too.