Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Need script to import folder list from csv and create a zip file for each folder

$
0
0

Hello,

I am trying to import folder list from csv and create a zip file file for each folder . For example :

C:\Inetpub\vhost\site1.com
C:\Inetpub\vhost\site2.com
C:\Inetpub\vhost\site3.com
C:\Inetpub\vhost\site4.com
C:\Inetpub\vhost\site5.com

and script will create a zip folder for each site in same folder :

C:\Inetpub\vhost\site1.com\site1.com
C:\Inetpub\vhost\site2.com\site2.zip
C:\Inetpub\vhost\site3.com\site2.zip
C:\Inetpub\vhost\site4.com\site4.zip
C:\Inetpub\vhost\site5.com\site5.zip

Then on remote server I want to download all this file and extract each zip for on server.

Could you please help me for the same…

I am new to powershell and its getting difficult for me to do above task..

Thanks
Yatin


Viewing all articles
Browse latest Browse all 13067

Trending Articles