How to escape characters in Windows Batch?

5

I have the following script:

start "" "https://site.com.br/app/index.jsf?username=nomecabuloso&token=tokenzera"

However, when I run it, it is no more than index.jsf , it opens the following url:

https://site.com.br/app/index.jsf

I have tried to use the escape key \ , for ? , but it does not work.

My question is, how to make it run the entire link?

    
asked by anonymous 12.09.2017 / 16:23

2 answers

7

For scoring characters use the% circumflex%

    
12.09.2017 / 16:25
0

Do not need any of this, just do so:

@echo off
start chrome "https://site.com.br/app/index.jsf?username=nomecabuloso&token=tokenzera"

Obs : Change the browser name to the browser you are going to open.

    
14.10.2017 / 11:48