MSFN Forum: Batch file stop after an exe running, howto .. ? - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Batch file stop after an exe running, howto .. ? Rate Topic: -----

#1 User is offline   ZYklon 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 07-November 11
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 07 November 2011 - 11:55 AM

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


#2 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,736
  • Joined: 13-January 06

Posted 07 November 2011 - 12:15 PM

Try launching it with something like this:
start "wizmo" /separate wizmo.exe play=theme.wav


#3 User is offline   ZYklon 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 07-November 11
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 08 November 2011 - 05:08 AM

View Postallen2, on 07 November 2011 - 12:15 PM, said:

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

#4 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,436
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 08 November 2011 - 07:51 AM

View PostZYklon, on 08 November 2011 - 05:08 AM, said:

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.html
http://support.micro...kb/156360/en-us

jaclaz

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy