1.

Solve : Execute files using a batch?

Answer»

I am trying to make a BATCH file so that i can easily start one of the many programs i have, without spamming my desktop with icons. I can get the menu and everything down, but i am having problems with executing them. I have tried USING CALL and just entering the file name after setting the directory. The programs start, but the batch file does not continue until after I close the program. It just sits there waiting. How would i set it to start it, and continue without waiting?I have not tried to code the process but here are a few ideas.

1) Have the menu ( main batch ) call the sub batch
2) Have the sub batch put the program in the background with the at command
3) The background process must redirect standard out and standard error to a file or  the sub batch will open a screen and interfere with your new  tasks.

I will give it a shot.

In the meantime post your menu. Quote

1) Have the menu ( main batch ) call the sub batch
                                            ^
                                            ^

                                Could Be The Best option

For EXAMPLE

Code: [Select]echo off
color 0c
echo.
echo   Pls Wait Executing Applications....
echo.
FIRSTFILE.exe
cls
echo.
echo   Pls Wait Executing 2nd Application
echo.
SECONDFILE.exe
cls
rem And So On The File Names
echo.
echo   Done!
echo.
pauseI've already tried something like that, but the secondary batch just pauses and sits there ALSO. I have to close the program before the secondary batch continues, and the secondary has to finish before the first continues.Try using the start cmd (type start /? at the cmd prompt for more info)

Code: [Select].
.
echo.
echo   Pls Wait Executing Applications....
echo.
start "" FIRSTFILE.exe
cls
echo.
echo   Pls Wait Executing 2nd Application
echo.
start "" SECONDFILE.exe
.
.
THANK you very much, that last one worked


Discussion

No Comment Found