DEA
DEA

Reputation: 295

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

Upvotes: 4

Views: 10946

Answers (1)

Peter B
Peter B

Reputation: 24136

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

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

Upvotes: 8

Related Questions