title: Is there a way to create a CMD command with arguments?
body: <p>I'm trying to create a command in the command prompt, but use arguments like you can do with a function in another language.</p>
  
  <p>For example, you can create a batch file in the C:\Windows\System32 folder and execute it in the command prompt by typing its name, creating a "command." This is very simple, though, and simply runs whatever the batch file contains. </p>
  
  <p>My command I made is called <code>toolbx</code>, which has different useful shortcuts in the command prompt. But, I want to execute different tools by typing something like <code>toolbx 1</code>. Here's what it might look like.</p>
  
  <p><code>toolbx [input received changing what tool you want to use] (e.g. 1)</code></p>
  
  <p>In toolbx.bat</p>
  
  <p><code>if %inputRecieved% == 1 goto 1</code></p>
  
  <p>I'm not the best at explaining, so another example in Python might be:</p>
  
  <p><code>def functionWithArgs (tool)</code></p>
  
  <p>Executed as:</p>
  
  <p><code>functionWithArgs(1)</code></p>
  
  <p>As another summary: </p>
  
  <p>I'm trying to make a command used in the command prompt with a batch file</p>
  
  <p>I want the batch file to have arguments defined when the command is run (like the python example) that can be used as variables in the batch file.</p>
  
  <p>Thank you in advance!</p>