Thursday, 16 April 2015

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")
view raw gistfile1.ps1 hosted with ❤ by GitHub