Windows 7 Commands For Copy, Unzip and Delete Zip Container Folders?
I need a way to automate copying thousands of files from one location to a Windows 7 computer. Copying 1 compressed file containing the data across a network such as a .zip seems faster than trying to copy thousands of smaller files even if combined size of the files are similar. The problem with this is that the files then need to be extracted the other end. When you compress files in Windows 7 it puts the files inside an additional folder. When you uncompress this new folder remains PLUS a copy of the compressed zip file also remains. We would like to automate getting rid of the container folders that are created when you send to compressed (zipped) folders and the extra copy of the zipped file so all that remains is the contents. Can this be done as a command or batch file?
May 22nd, 2012 1:24am

There are more "vectors" to take into account. 1. If your network iinfrastructure supports large packets, the transfer of big file is more advantageous (jumbo packets etc.) 2. If you have really a lot of small files, the transfer with small packet may be efficient. 3. there are a lot of possible tools and mechanisms that you can use. Your decision should take into account the transfer parameters, speed of accessibility of files, etc. 4. Majority of compression tools are designed for both, user friendly intercface and command prompt. Widely used is 7-zip. here is a blog on command sysntax. http://www.dotnetperls.com/7-zip-examples Regards Milos
Free Windows Admin Tool Kit Click here and download it now
May 22nd, 2012 9:38am

I tested zipping the files before copying them and it took less than 10% of the amount of time to transfer 2 gig zip file vs the 70,0000 files and folders uncompressed. We can zip the files manually and save the compressed folder on share for later deployment. The file copy part also works fine, but after the file copy completes, we would like to find some way to automate unzipping the files and deleting the redundant folders and zip file that's left on the workstation when you unzip a file.
May 22nd, 2012 6:44pm

Hi, Based on my research, Im afraid that there is no such build-in command exists, you may try achieve this with scripts. Regarding script related questions or queries, you can go to Scripting Forums to see if guys there have idea about it. Hope this helps. Jeremy Wu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2012 5:41am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics