web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

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

Ian Grieve Profile Picture Ian Grieve 22,784
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 "*"

Read original post PowerShell Snippets: Run Application (Such as 7-zip) at azurecurve|Ramblings of an IT Professional


This was originally posted here.

Comments

*This post is locked for comments