cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Scripting alert - How to pass parameter/macros in bat file

emanuele_longo
Participant

Hello world,

I need to know how to pass the parameters/macros in bat file

Reading the documentation it seems not be explained.

https://community.dynatrace.com/community/display/...

Could anyone help me?

Regards,

Ema

3 REPLIES 3

Rafal_Brzezinsk
Dynatrace Helper
Dynatrace Helper

Hi Ema,

Here you can find the description of the arguments for PowerShell

https://community.dynatrace.com/community/display/...

Rafal


Hello Rafal,

Thanks for your suggest.

For script .bat the parameter are positional.

Example:

C:\>script.bat param1 param2 param3

So I get the parameters with setting variable as "%1", "%2", "%3".

Regards.

See also comments on how to call (powershell) script, with parameters here:

https://answers.dynatrace.com/questions/191051/scr...