1

I want to create a cmd command by writing a batchfile and put it into "system32" to call it in the cmd console by its name. Is there a way to expect parameters in the batch file:

Write in cmd:

fake-command Test

And then work with the string "Test" in the batch file?

0

1 Answer 1

3

Use %1 to access the first argument, %2 for the second, etc.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.