开发者

Pass multiple parameters in batch file

开发者 https://www.devze.com 2023-04-12 07:05 出处:网络
I have a winform app that prompts the user to input two search parameters. When executed these parameters are passed into a run.bat file i.e.

I have a winform app that prompts the user to input two search parameters.

When executed these parameters are passed into a run.bat file i.e.

call search.bat %1 %2

Where %1 %2 are the parameters that were input by the user in the winform.

This then should put the parameters into the 开发者_如何学Gosearch.bat part of a search URL which is-

"http://www.foo.com/search=%*"

I thought that the %* would take both parameters added and do the search but for some reason it brings back results for both parameters %1 + %2 and then results for just %2.

Is it possible to edit this so that it only brings back results for any parameters entered by the user?


Its turns out I was not clearing the cache folder after every search, therefore old search terms were being submitted.

0

精彩评论

暂无评论...
验证码 换一张
取 消