Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run a c# console app with arguments from a batch file

i'm working on creating a batch file to run c# console execution file which on it , i connect to CRM with 3 params : the url , login and then password

My issue is that i couldn't write the bat code , i found this example every where

@echo off C:\Users\xxx\appname.exe %param1 %param2 %param3

i save my bat file but when i open it nothing is happened is it supposed to open window like cmd? how could i found my console success notes that i mentioned in my code? Please help

like image 371
ODE Avatar asked Nov 04 '25 15:11

ODE


1 Answers

Put it on two lines, because they are two commands:

@echo off
C:\Users\xxx\appname.exe %param1 %param2 %param3
like image 192
Peter B Avatar answered Nov 07 '25 15:11

Peter B