Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9738

How to pass a double quote as a command line argument in Windows CMD?

$
0
0

argc parameter in main function doesn't include redirection command [<, >], but I faced a confusing problem when using a double quote:

  • Shell: CMD
    • I expected argc is 3 and Yes!:
      a.exe aa bb < input.txt

    • I expected argc is also 3 , but 5, as I want to input double quote as argument:
      a.exe \" bb < input.txt

Viewing all articles
Browse latest Browse all 9738

Trending Articles