Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Power Shell - Running a program - Issues ??

$
0
0

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}







Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>