$7Zip = "C:\Program Files (x86)\7za.exe"
Step 2: Wrap the reference in the double quotes and precede with the call operator like so
ForEach-Object { &"$7Zip" a ($_.fullname -replace "txt", "zip") $_.fullname }
ForEach-Object { &"$7Zip" a ($_.fullname -replace "txt", "zip") $_.fullname }
Step 3: Complain silently in your head about the time you wasted trying to figure that out.
No comments:
Post a Comment