Escaping Brackets in Scripts

Discuss and share scripts and script files...
Post Reply
shimamiya
Posts: 8
Joined: 29 Jun 2023 12:29

Escaping Brackets in Scripts

Post 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.

jupe
Posts: 2805
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Escaping Brackets in Scripts

Post by jupe »

You have to start a cmd shell to use redirection.

shimamiya
Posts: 8
Joined: 29 Jun 2023 12:29

Re: Escaping Brackets in Scripts

Post by shimamiya »

Brilliant. Never thought of that. Thank you.

Post Reply