|
Answer» I'V read about it but, I can't comprehend it. Can you try to describe it?
Thanks, S_R_SCall is used to execute a batch script from within ANOTHER batch script. Control is handed back to the calling script.
Try this: Create two batch scripts which I have named batchone.bat and batchtwo.bat as below
--------------------------------------------------------------------------------------------- Batchone.bat
@echo off cls
echo This is batch one..... echo. echo Press any key to continue...
pause > nul
cls
call batchtwo.bat
echo Now back in batch one again... echo. echo Press any key to end...
pause > nul cls
-----------------------------------------------------------------------------------------------
Batchtwo.bat
@echo off cls
echo Now this is batch two... echo. echo Press any key to return to batch one...
pause > nul
cls
----------------------------------------------------------------------------------------------- Save them in your Path then execute batchone.bat. Hopefully you will see when batchone calls batchtwo then batchtwo hands back to batchone.
Here is the BATCHING master on Call.
Good luck
|