摘要:
Quote from: http://ss64.com/nt/syntax-args.htmlParametersA parameter (or argument) is any value passed into a batch script:C:> MyScript.cmd January 1234 "Some value"Parameters may also be passed to a subroutine with CALL:CALL :my_sub 2468You can get the value of any parameter using a % 阅读全文
摘要:
Quote from:http://ss64.com/nt/setlocal.htmlSETLOCALSet options to control the visibility of environment variables in a batch file.Syntax SETLOCAL SETLOCAL EnableDelayedExpansion SETLOCAL EnableExtensions SETLOCAL DisableExtensions SETLOCAL EnableExtensions EnableDelayedExpan... 阅读全文