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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,429 questions
{count} votes

Accepted answer
  1. Gary Nebbett 5,721 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