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?

Gaterde
  • 779
  • 1
  • 7
  • 25

1 Answers1

3

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

Jenna Sloan
  • 372
  • 8
  • 22