Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 451
  • Last Modified:

How to write a batch file with parameters...

sorry for the lousy title, but the shortcut says

C:\ecw\Dyalogrt.exe C:\ecw\reports.dws MAXWS=50000

How would I write a .bat file which runs this?
1 Solution
Lee W, MVPTechnology and Business Process AdvisorCommented:
A batch file is a collection of commands.  What exactly are you trying to do?  If you just want to execute the program, type C:\ecw\Dyalogrt.exe C:\ecw\reports.dws MAXWS=50000 at a command prompt.  
Bob LambersonSoftware EngineerCommented:
A batch file will run the commands you put in it.

Create a file called "mybatch.bat" in any text editor, add the line(s) you want to run, then save it in your path or a directory you can access.

You might create "c:\batchfiles\mybatch.bat"
Then add your commands   C:\ecw\Dyalogrt.exe C:\ecw\reports.dws MAXWS=50000       as the only text in the file.

You would call this by referring to "c:\batchfiles\mybatch.bat"


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now