0

This is the command I need:

ping oldschool"world#".runescape.com

I want to be able to open the batch file, type in world#, and have it fill in and type that command.

e.g.

ping oldschool53.runescape.com

Any help or direction would be much appreciated!

double-beep
  • 5,031
  • 17
  • 33
  • 41
  • Possible duplicate of [How do I pass command line parameters to a batch file?](https://stackoverflow.com/questions/26551/how-do-i-pass-command-line-parameters-to-a-batch-file) – Virginia Dec 09 '18 at 13:10

1 Answers1

0

Add a batch file called pw.bat with this content:

ping oldschool%1.runescape.com

I you type "pw 12" it will ping world #12.

If you want it to be reachable from anywhere in you command prompt, put the file in a foler which is added to the PATH variable, you can see them if you type PATH in your command prompt.