I am looking for a PS script which will search for a particular file name and check its existence. If file exists it should execute a batch command.
$version = "1.1.0"
$packageName = "example.DTO.$version"
Get-ChildItem "d:\Test" | Where-Object { $_.Name -match "$packageName.nupkg" }
and my batch command
C:\NugetRestore\nuget.exe push "d:\Test\$packageName.nupkg" saranuget -Source "http://123.456.78.90/myget" -Timeout 120
I am unable to integrate both this.