Run notepad or any other windows application with Release Definition on build server using powershell or batch scripts: I tried all the commands known to me:
& ′notepad.exe′
Invoke-Expression -Command ′notepad.exe′
Start-Process -FilePath ′notepad.exe′
[System.Diagnostics.Process]::Start(′notepad.exe′)
([wmiclass]″Win32_Process″).Create(′notepad.exe′)
Invoke-WmiMethod -Class Win32_Process -Name Create -ArgumentList ″notepad.exe″
Invoke-Command -ScriptBlock {& notepad.exe′}
cmd /c ″notepad.exe″
When running on the server itself everything works(start notepad or any onther win app) but When i tried running by TFS Release Definition : Command end successful but on build server - nothing happens.
Any Ideas!!!