What is the command line parameter of the doscommand? Common Parameter Parsing for batch processing, doscommand line parameters

Source: Internet
Author: User

What is the command line parameter of the doscommand? Common Parameter Parsing for batch processing, doscommand line parameters

What is the command line parameter of the doscommand? Common Parameter Parsing for batch processing.

% ~ 1

Expand % 1 and delete any quotation marks ("").

% ~ F1

Extend % 1 to a fully qualified path name.

% ~ D1

Extend % 1 to the drive letter.

% ~ P1

Extend % 1 to the path.

% ~ N1

Extend % 1 to the file name.

% ~ X1

Extend % 1 to the file extension.

% ~ S1

The extension path contains only short names.

% ~ A1

Extend % 1 to file properties.

% ~ T1

Extend % 1 to the file date/time.

% ~ Z1

Extend % 1 to the file size.

% ~ $ PATH: 1

Search for the directories listed in the PATH environment variable and extend % 1 to the fully qualified name of the first directory found. If no stage variable name is defined or the file is not found, this modifier is extended to a null string.

The following table lists possible combinations of delimiters and delimiters that can be used to obtain complex results:

Edit character

Description

% ~ Dp1

Extend % 1 to the drive letter and path.

% ~ Nx1

Extend % 1 to the file name and extension.

% ~ Dp $ PATH: 1

Search for % 1 in the directory listed in the PATH environment variable and extend it to the drive letter and PATH of the first directory found.

% ~ Ftza1

Extend % 1 to output rows similar to dir.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.