ZYklon Posted November 7, 2011 Share Posted November 7, 2011 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 OFFclsmkdir datamkdir data\resmove Data2.7z data\Data2.7zmove Data3.7z data\res\Data3.7zmove Data4.7z data\Data4.7zcopy 7za.exe data\7za.execopy 7za.exe data\res\7za.execopy chgcolor.exe data\chgcolor.execopy chgcolor.exe data\res\chgcolor.execlschgcolor 0aecho.echo.echo. echo. echo. echo. echo.chgcolor 0fecho 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 clscd datachgcolor 0aecho.echo.echo. echo. echo.chgcolor 0f echo Extracting.echo.echo ÛÛÛÛÛ±±±±±±±±±±±±±±±±±±±±±±± 30%%echo.7za.exe x -bd -y Data2.7z >nulecho.clschgcolor 0aecho.echo.echo. echo. echo.chgcolor 0f echo Extracting..echo.echo ÛÛÛÛÛÛÛÛÛÛÛÛÛÛ±±±±±±±±±±±±±± 50%%7za.exe x -bd -y Data4.7z >nulecho.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 More sharing options...
allen2 Posted November 7, 2011 Share Posted November 7, 2011 Try launching it with something like this:start "wizmo" /separate wizmo.exe play=theme.wav Link to comment Share on other sites More sharing options...
ZYklon Posted November 8, 2011 Author Share Posted November 8, 2011 Try launching it with something like this:start "wizmo" /separate wizmo.exe play=theme.wavThe 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 More sharing options...
jaclaz Posted November 8, 2011 Share Posted November 8, 2011 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 !?http://ss64.com/nt/start.htmlhttp://support.microsoft.com/kb/156360/en-usjaclaz Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now