Jump to content

Batch file stop after an exe running, howto .. ?


Recommended Posts

I have a batch file, to extract files using 7zip, while extracting goes on, I want to play a file using wizmo.exe, but the problem is that, I run wizmo.exe and the code stops till the sound its finished then starts extracting ...

Here it is the code


@echo OFF
cls
mkdir data
mkdir data\res
move Data2.7z data\Data2.7z
move Data3.7z data\res\Data3.7z
move Data4.7z data\Data4.7z
copy 7za.exe data\7za.exe
copy 7za.exe data\res\7za.exe
copy chgcolor.exe data\chgcolor.exe
copy chgcolor.exe data\res\chgcolor.exe
cls
chgcolor 0a
echo.
echo.
echo.
echo.
echo.
echo.
echo.
chgcolor 0f
echo Extracting...
echo.
echo Û±±±±±±±±±±±±±±±±±±±±±±±±±±± 1%%
echo.
wizmo.exe play=theme.wav <<<--THIS IS THE PROBLEM, HOW TO CONTINUE THE REST OF THE CODE,WHILE WIZMO.EXE IS RUNING .....
7za.exe x -y -bd Data1.7z>nul
cls
cd data

chgcolor 0a
echo.
echo.
echo.
echo.
echo.
chgcolor 0f
echo Extracting.
echo.
echo ÛÛÛÛÛ±±±±±±±±±±±±±±±±±±±±±±± 30%%
echo.
7za.exe x -bd -y Data2.7z >nul
echo.
cls

chgcolor 0a
echo.
echo.
echo.
echo.
echo.
chgcolor 0f
echo Extracting..
echo.
echo ÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±±±±±±±±±±±±± 50%%
7za.exe x -bd -y Data4.7z >nul
echo.

Is this possible, to jump on next line while that exe is running, or any trick to do this ... ?

Link to comment
Share on other sites


Try launching it with something like this:

start "wizmo" /separate wizmo.exe play=theme.wav

The best straight answer I've ever got.

It works like a charm!

Can you explain how this works /sepeate, to make batch continue executing other lines, a lot of peeps said to me that its impossible in batch !?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...