#to create a new zip file:
# Set-Content $arg[0] (“PK”+ [char]5 + [char]6 + (“$([char]0)”* 18))
#copy a file to new zip file
$Shell=New-Object -ComObject Shell.Application
$ZipFolder=$Shell.Namespace(‘F:\backup.zip’)
$ZipFolder.CopyHere(‘C:\0bat\test.txt’)
No comments:
Post a Comment