Home > Software engineering >  Batch how to determine modification date copy all files folder and subfolders
Batch how to determine modification date copy all files folder and subfolders

Time:10-29

A: copy all files and subfolders under the current directory to the specified folder, if the file and folder with the same name but different modification time, on the cover of the old (don't ask whether cover), if the modification time is not same to copy,
For example: the Font folder copy disk C all Fonts (assuming that the folder is a folder and other types of files) into H disk Fonts file, how to achieve the above effect,

B: copy all files and folders under the current directory to the specified folder (provide the folder name, but I don't know the drive), if the file and folder with the same name but different modification time, on the cover of the old (don't ask whether cover), if the modification time is not same to copy,
For example: the Font folder copy disk C all Fonts (assuming that the folder is a folder and other types of files), copied to the disc X Fonts file (X is not sure), how to achieve the above effect,

There is no search to the relevant answer on the Internet, ask someone under your solution,

CodePudding user response:

batch x.b at
 xcopy *. The vera.ttf % 1: \ Fonts \ *. */S/D/Y 


A,
C: \ Font> X.b at H

B
C: \ Font> X.b at X

CodePudding user response:

Collect a!!!!!!

CodePudding user response:

reference 1st floor Tiger_Zhao response:
batch x.b at
 xcopy *. The vera.ttf % 1: \ Fonts \ *. */S/D/Y 


A,
C: \ Font> X.b at H

B
C: \ Font> X.b at X


I this is just a hypothesis, is not only copy *. The vera.ttf, and font file and *. Otf,
Put it this way, hypothesis on the computer D plate 123123 folders folder there are a number of files and subfolders (child still have folders and files in the folder... ), I am going to put it back up to ABC folder on the mobile hard disk, mobile hard disk drive not sure, because the previous backup, you just need to backup the modified files? If a folder modification date remains the same, and a folder of files modified, how to achieve this effect?

CodePudding user response:

reference q121681691 reply: 3/f
I this is just a hypothesis, not only is to replicate *. The vera.ttf, and font file and *. Otf,
Put it this way, hypothesis on the computer D plate 123123 folders folder there are a number of files and subfolders (child still have folders and files in the folder... ), I am going to put it back up to ABC folder on the mobile hard disk, mobile hard disk drive not sure, because the previous backup, you just need to backup the modified files? If a folder modification date remains the same, and a folder of files modified, how to achieve this effect?

Batch multiple commands can be written
 xcopy *. The vera.ttf % 1: \ Fonts \ *. */S/D/Y 
Xcopy *. Otf % 1: \ Fonts \ *. */S/D/Y
Xcopy *. Fon % 1: \ Fonts \ *. */S/D/Y
.

Don't guess the result, run it to see results,
  • Related