Skip to main content
added 24 characters in body
Source Link
user
  • 1.2k
  • 13
  • 28

Using Windows 7, I want to write a wrapper for some command line tools to simplify their usage. Say I regularly use this executable with following options

someTool.exe -i infile -a option1 -b option2

I want to create a wrapper that executes the above command & options, and additionally accept more options (any number of options). So running this:

someToolWrapper.exe -c option3

would effectively run

someTool.exe -i infile -a option1 -b option2 -c option3

P.S. Preferably accomplish this with batch files or cygwin commands & be robust / versatile. I usually end up with brittle batch files that fail on edge cases.

Using Windows 7, I want to write a wrapper for some command line tools to simplify their usage. Say I regularly use this executable with following options

someTool.exe -i infile -a option1 -b option2

I want to create a wrapper that executes the above command & options, and additionally accept more options. So running this:

someToolWrapper.exe -c option3

would effectively run

someTool.exe -i infile -a option1 -b option2 -c option3

P.S. Preferably accomplish this with batch files or cygwin commands

Using Windows 7, I want to write a wrapper for some command line tools to simplify their usage. Say I regularly use this executable with following options

someTool.exe -i infile -a option1 -b option2

I want to create a wrapper that executes the above command & options, and additionally accept more options (any number of options). So running this:

someToolWrapper.exe -c option3

would effectively run

someTool.exe -i infile -a option1 -b option2 -c option3

P.S. Preferably accomplish this with batch files or cygwin commands & be robust / versatile. I usually end up with brittle batch files that fail on edge cases.

Source Link
user
  • 1.2k
  • 13
  • 28

Wrapper for Windows command line tool

Using Windows 7, I want to write a wrapper for some command line tools to simplify their usage. Say I regularly use this executable with following options

someTool.exe -i infile -a option1 -b option2

I want to create a wrapper that executes the above command & options, and additionally accept more options. So running this:

someToolWrapper.exe -c option3

would effectively run

someTool.exe -i infile -a option1 -b option2 -c option3

P.S. Preferably accomplish this with batch files or cygwin commands