Search code examples
batch-filecommand-linescriptingwindows-scripting

How to write the command line input into the command in batch?


I want to run the command

ex.exe property

where 'property' is the text which I first enter from the command line. How to write such batch script?


Solution

  • If I understand you correctly, you want a prompt for a variable value. Try something like:

    set /p property=Enter Property:
    ex.exe %property%