Dreamslogic
asked on
Zipping Multiple Folders using 7z
Hi Guys,
I got hundreds of folders in one directory
Path : I:\sourcefiles\
Folders Names as followed
WE_20110130
WE_20110129
WE_20110128
WE_20110127
WE_20110126
so on....
I want to zip this folder with exact name using 7zip to different directory using script
example to
I:\DestinationZipFiles\
Followed by zip files
WE_20110130.zip
WE_20110129.zip
WE_20110128.zip
WE_20110127.zip
WE_20110126.zip
My 7Zip exe is located in C:\Program Files\7-zip\7z.exe
Any help thanks
D
I got hundreds of folders in one directory
Path : I:\sourcefiles\
Folders Names as followed
WE_20110130
WE_20110129
WE_20110128
WE_20110127
WE_20110126
so on....
I want to zip this folder with exact name using 7zip to different directory using script
example to
I:\DestinationZipFiles\
Followed by zip files
WE_20110130.zip
WE_20110129.zip
WE_20110128.zip
WE_20110127.zip
WE_20110126.zip
My 7Zip exe is located in C:\Program Files\7-zip\7z.exe
Any help thanks
D
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
For me it works like a charm! Do you copied the code correctly?
Does the 'Get-ChildItem I:\sourcefiles' part give any result?
Do you get any error messages?
Does the 'Get-ChildItem I:\sourcefiles' part give any result?
Do you get any error messages?
ASKER
Ok
ASKER
Worked !!
ASKER
I am sorry but it didn't worked. It doesn't do anything !