Hi
I used http://social.technet.microsoft.com/wiki/contents/articles/7703.powershell-running-executables.aspx as the basis of trying to run a exe from powersehll which has arguments.
Article Example
"$AllArgs = @('filename1', '-someswitch', 'C:\documents
and settings\user\desktop\some other file.txt', '-yetanotherswitch')
& 'SuperApp.exe' $AllArgs"
No joy...
>> Can anyone see what the issue could be ?
Thanks in advance
cd "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE"
$AllArgs = @("status", $area, "/resursive", ("/user:" + $user), ("/collection:" + $serverCollection)) # next line works #& '.\tf.exe' status $/tools /recursive /user:ouruser /collection:http://syd-xxx.domain.com:8080/tfs/oosa # this does not work& '.\tf.exe' $AllArgs From powergui debugger for $AllArgs {status, $/Tools, /resursive, /user:ouruser, /collection:http://syd-xxx.domain.com:8080/tfs/oosa}