2

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

Panagiotis Kanavos
  • 104,344
  • 11
  • 159
  • 196
ODE
  • 255
  • 5
  • 22
  • Why would that work. Stop finding and start reading. This is abusive. –  Dec 13 '16 at 08:50
  • 1
    This isn't even related to C#. Batch files and parameter syntax is explained TechNet, Windows Help, numerous duplicate questions like [this](http://stackoverflow.com/questions/26551/how-to-pass-command-line-parameters-to-a-batch-file) – Panagiotis Kanavos Dec 13 '16 at 08:56

1 Answers1

6

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

@echo off
C:\Users\xxx\appname.exe %param1 %param2 %param3
Peter B
  • 21,067
  • 5
  • 28
  • 63