Code for BATCH FILE SHOWING THE USAGE OF CALL COMMAND in Dos
REM CALL HELPS TO RUN ANOTHER BATCH FILE FROM OTHER BATCH FILE.
REM BATCH FILE STARTS..............
ECHO THIS IS THE BATCH FILE SHOWING THE USE OF CALL COMMAND.
ECHO PRESS 1 TO CHECK WHETHER THE FILE EXIST OR NOT.
ECHO PRESS 2 FOR CHECKING TIME AND DATE.
if"%1"=="1" GOTO fa
goto tr
goto exit
:fa
call ass1.bat
goto exit
:tr
if"%1"=="" (
ECHO No commandline parameter entered.Syntax : ass3 parameter
GOTO exit
) ELSE (
call ass2.bat
goto exit
)
:exit
@echo on