You can put the arguments in quotation marks:
myprogram.exe "(this is some text, with special characters.)"
Although I would not suggest that parentheses cause problems if you do not use blocks for conditional statements or loops in a batch file. The usual array of characters specially processed by the shell and need to be quoted or escaped:
& | > < ^
If you use them in your regular expression, you need quotes or avoid these characters:
myprogram "(.*)|[af]+" myprogram (.*)^|[af]+
( ^ is an escape character that results in the next character not being interpreted by the shell, but used literally)
Joey Nov 16 '09 at 11:18 2009-11-16 11:18
source share