1.

Solve : From bat run another exe, then close bat?

Answer»

Hi, I am trying to run a exe program from a bat FILE, but the bat doesn't close until I close the exe program.

Is there a way to start the exe program from the bat file, but the bat doesn't hung on it?

ThanksHere is a SUPER simple test to see if the EXE file will LET ou do that.

Code: [Select]REM callme.bat
notepad
REM done here

Code: [Select]REM BATCH file calls another batch
DIR /b
call callme.bat
DIR /w
REM All done!

The only purpose of this code is to see if it works in a very simple batch.
This doesn't work, I am on Windows XP, it doesn't even work for the notepad.Code: [Select]start notepad.exe
exit
Please help me as I have esimilar kind of query.

I want to create a batch file like SAY abc.bat which will execute batch file xyz.bat located in some d:\ .

but problem is that we manually run this file by going to d:\ and typing command d:>xyz start.

please suggest how to write code for same.Quote from: alpa on January 31, 2009, 06:56:32 AM

Please help me as I have esimilar kind of query.

I want to create a batch file like say abc.bat which will execute batch file xyz.bat located in some d:\ .

but problem is that we manually run this file by going to d:\ and typing command d:>xyz start.

please suggest how to write code for same.
Quote from: foxhunt99 on January 30, 2009, 03:32:10 PM
Hi, I am trying to run a exe program from a bat file, but the bat doesn't close until I close the exe program.

Is there a way to start the exe program from the bat file, but the bat doesn't hung on it?

Thanks
Code: [Select]@echo off
start "" "D:\xyz.exe"


Discussion

No Comment Found