How to add special character in password for Atlassian batch file

This article explains how to use an exclamation mark (!) with the password parameter while executing CLI command from Atlassian batch file.

This scenario is specific to the usage of an exclamation mark (!) with the password parameter without encountering errors.

Instructions to use exclamation mark in Atlassian batch file:

  1. Use ^^ before '!' mark in the password as shown below, to avoid any errors that may occur while the system reads the password:

  2. Replace '%' with '!' on both sides of the password parameter. Please refer to the screenshots below: