PowerShell Snippets: Run Application (Such as 7-zip)

PowerShellThis post is part of the series on PowerShell Snippets.

The following PowerShell command will execute a Windows application supplying a number of parameters; in this case I am using 7-zip to compress a single one of my ClassicPress plugins to a releases folder (part of this command came from a post I did on compressing all sub folders individually:

$releaseFileName = ".\Releases\$ghRepo.zip"

& "C:\Program Files\7-Zip\7z.exe" a "-xr!.git\" "-xr!*~" $releaseFileName "*"

What should we write about next?

If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.

Your Name

Your Email

Suggested Topic

Suggestion Details

Leave a Reply

Your email address will not be published. Required fields are marked *