Created
April 16, 2015 17:42
-
-
Save Microsofttechies/8eb1680d141ec85b2dd9 to your computer and use it in GitHub Desktop.
Bat file calling PS1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Set exePath="C:\My.exe" | |
| Echo "Call PS1" | |
| PowerShell.exe Set-ExecutionPolicy RemoteSigned; "C:\MyScript.PS1" -exePath %exePath% | |
| Echo "End PS1" | |
| PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment