Click here to Skip to main content
15,905,607 members

Comments by Member 11290409 (Top 1 by date)

Member 11290409 7-Dec-14 9:00am View    
Get-ChildItem F:\log | where-object {$i.lastwritetime -le ((Get-Date).AddDays(-1))} | Copy-Item -destination F:\new
$SFOLDER= "F:\log"
$DSTFOLDER= "f:\new\"
if (-not (test-path "$env:ProgramFiles\7-Zip\7z.exe")) {throw "$env:ProgramFiles\7-Zip\7z.exe needed"}
set-alias sz "$env:ProgramFiles\7-Zip\7z.exe"

Please find the script in which the files zipped are not as per the folder and file structure. Also i believe its not a perfect script.

Script error while running in prompt