Bat basics-5-copy

Command name: copy

Command function: copy files

Command format: copy [drive letter:][path name][file name]  [drive letter:][path name][file name]

Instructions for use:

    1. "Drive letter": Specify the letter of the disk drive to create a subdirectory, if omitted, it will be the current drive.

    2. "Path name": the parent directory name of the subdirectory to be created, if omitted, it is the current directory.

    3. "File name": must be the full name of the file, including the suffix.

Example of use:

    1.copy D:\a\a.txt D:\b\

        Copy the file to the latter directory

    2.copy D:\a\a.txt D:\b\b.txt

        Copy the contents of the previous file to the next file

    3.copy D:\a\ D:\b\

        Copy files in non-subdirectories of the previous folder to the next folder

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326525262&siteId=291194637
bat