Copying ZIP files

Fred Zuckerman 21 Reputation points
2021-04-12T02:02:45.597+00:00

I issue the DOS cmd "Copy C:\BackUp\ *1.zip C:\Temp" in a batch file.
It is supposed to copy all of the .zip files that end with a "1".
But it also copies a file named Music5.zip and does NOT copy Music4.zip
So is it looking "inside" the zip files for file names ending in "1"?
Thanks
== I may not have the appropriate tags, sorry ==

Windows development | Windows API - Win32
{count} votes

Accepted answer
  1. Gary Nebbett 6,216 Reputation points
    2021-04-12T06:58:18.04+00:00

    Hello anonymous userZuckerman-7337,

    Can you try issuing the command "dir /x Music5.zip" (assuming that Music5.zip is in the current directory)? The "/x" options shows the "8.3" name of the file (if present). There is no reason why "Music5.zip" should have an 8.3 name (since it is already in that format), but it would be good to check. The base part of the automatically generated 8.3 names often end in something like "~1" (the final letter is just chosen to make the chosen name unique among existing files in the directory, so ~2, ~3, etc. can also be observed).

    Gary

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.