I have one zip file in source path called crewing.zip, zip file structure is as follows:
crewing\Build\Areas
i just want to extract only the folders and files under Build, i dont want the parent folder Build to be in destination location
Source Folder path: \10.201.1.6\TempPath\CL1
Destination Folder path: D:\Client1\inetpub\wwwroot
Expected Result: D:\Client1\inetpub\wwwroot\crewing\Areas
in unzip format, below is the code which i tried in batch files
7za X \10.201.1.6\TempPath\CL1\crewing.zip -y -oD:\Client1\inetpub\wwwroot crewing\Build* -r
please help me now in destination parent folder build also obtained.
Try:
7z x -y -oD:\GWClient\inetpub\wwwroot \10.201.1.6\MariApps\GW\crewing.zip crewing\Build\*
You'll have to remove the Build dir afterwards.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With