Skip to content

Instantly share code, notes, and snippets.

@Microsofttechies
Created April 16, 2015 17:21
Show Gist options
  • Select an option

  • Save Microsofttechies/e1dfeb99049a938ecb66 to your computer and use it in GitHub Desktop.

Select an option

Save Microsofttechies/e1dfeb99049a938ecb66 to your computer and use it in GitHub Desktop.
powershell script to run exe
cls
$startTime = Get-Date
Write-Host "Start " + $startTime.ToString("u")
$exePath = "C:\My.exe"
& $exePath
$endTime = Get-Date
Write-Host "End " + $endTime.ToString("u")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment