Page 1 of 1

Escaping Brackets in Scripts

Posted: 01 Jul 2023 18:57
by shimamiya
Hi guys, how do I escape brackets in scripting?

Code: Select all

run """software.exe"" /A * <curpath> > C:\Users\xxxx\Desktop\list.csv"
So, the > before C:\

I tried the Windows escape character ^, and also quotes, but it keeps throwing an error saying invalid syntax >

Many thanks.

Re: Escaping Brackets in Scripts

Posted: 01 Jul 2023 23:47
by jupe
You have to start a cmd shell to use redirection.

Re: Escaping Brackets in Scripts

Posted: 02 Jul 2023 06:56
by shimamiya
Brilliant. Never thought of that. Thank you.