window 批处理 bat

来源:互联网 发布:能看十大禁片的软件 编辑:程序博客网 时间:2024/05/16 13:00
rem does not display cmd("rem" and no "rem")echo off rem @echo off "@" <==> "echo off", "@"'scope is signle line.rem write result of "dir" to a.txtrem dir c:\*.* >a.txt rem call another "bat", after run over, go on execute itself.rem call c:\ucdos\ucdos.batrem pauserem %0-%9,"bat" can receive 10 parameters. eg: a.bat arem format %1rem "%~dp0" is current direcho %~dp0 set BASEDIR=%~dp0\..rem echo %PATH%rem start calc.exeif exist "%BASEDIR%"\bin\mc-config-env.bat call "%BASEDIR%"\bin\mc-config-env.batif ERRORLEVEL 1 goto errornet start %SERVICE_NAME%:errorset ERROR_CODE=1exit /B %ERROR_CODE%

 

原创粉丝点击