cmd - When moving files XCopy can put them into a file -


i making backup script usb , stumbled upon this.

xcopy "e:\" "d:\backup" /s/h/e/k/f/c/y 

when executed batch script created file (not folder) in d:\ drive called backup.

then renamed .zip folder , extracted it, looked inside.

enter image description here

what these files , for?.

am able backup usb zip??.

your video revealed on crucial bit of information left out of initial question: when xcopy asked if target destination file or directory, told xcopy file.

xcopy proceeded write every single file in source file, because that's told do. unfortunately, xcopy not create archive files, instead of merging of files container file, if overwrote destination file every single source file 1 @ time - key strange behavior you're seeing.

according video, last file xcopy processed action plan.xlsx - important note. since last file xcopy processed, d:\backup copy of file , file only.

the interesting thing excel files while old .xls files proprietary microsoft files opened excel, newer .xlsx files archives of xml files. (for example, this work schedule few years ago looks when open winrar - familiar?)

so in summary, copied each file in source same target file , last file copied merely happened archive file. next time run script, pick d instead of f.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -