Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
ZYklon

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 ... ?

Share this post


Link to post
Share on other sites

Try launching it with something like this:

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

Share this post


Link to post
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 !?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...