26-06-2005, 11:47
|
|
|
חבר מתאריך: 07.07.02
הודעות: 7,342
|
|
CALL
כן, לעיתים צריך לבצע כמה פעולות ב Batch File פרמיטיבי :-)
The CALL command is used to run another batch file from within a batch file. Execution of the current batch file is paused and the called batch file is run. After the called batch file has finished running, the original batch file is resumed at the line after the CALL statement.
Note: If another batch file is run from within a batch file by simply using its name, after the called batch file finishes executing, control is returned to the Command Line, NOT the original batch file.
לגבי ה Note המודגש :
מה עושים במצב שבו אני אכן צריך לבצע בתוך קובץ Batch מסויים :
call a.bat
call b.bat
call c.bat
call d.bat
ושזה יעבוד תקין ואכן יקרא לכולם לפי הסדר עם המתנה עד לאחר שכל אחד יסיים עבודתו,
לפני שעוברים לבא אחריו ?
האם יש פונקציה אחרת פרט ל CALL ?
(הכוונה היא כמובן להשאר במסגרת ה Batch הכללי הזה)
|