请问批处理中是否可以定义函数或者过程?
查了一些资料,好像结合 goto :EOF定义批处理函数/过程。
@echo off
echo show call command
call :showDir c:\windows
call :showDir e:\tools
echo.
goto end
:showDir
echo *************
echo the command is %1
dir %1
echo *************
goto :EOF
:end
echo program exit.....
pause
初学者,请大家给些批处理函数/过程定义的资料,谢谢
查了一些资料,好像结合 goto :EOF定义批处理函数/过程。
@echo off
echo show call command
call :showDir c:\windows
call :showDir e:\tools
echo.
goto end
:showDir
echo *************
echo the command is %1
dir %1
echo *************
goto :EOF
:end
echo program exit.....
pause
初学者,请大家给些批处理函数/过程定义的资料,谢谢
