Wildcard in powershell string for call operator -


in powershell script need call funcion this

$specruncall = "./packages/specrun.runner.1.2.0/tools/specrun.exe" $mstestarguments = @('run', 'default.srprofile', "/basefolder:.\testresults", '/log:specrun.log')  if($tag) {     $mstestarguments += '/filter:@' + $tag }     & $specruncall $mstestarguments 

but have put there version of specrun runner, thinking of putting wildcard , find whichever version have (provided have 1 there) i'm struggling find working solution it.

thanks,

assuming version exists, resolve-path ...specrun.runner.*... should work:

$specruncall = resolve-path ./packages/specrun.runner.*/tools/specrun.exe 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -