Batch Input Variable

May 3, 2011 at 12:34:24
Specs: Windows 7
Hello, I got in Batch Scriping like a year ago, but I'm still fairly a begginer...
I'm not making an simple count file, but I have no idea how to make the Batch take my input, and put it in the command.

Here is the script I'm making:

@echo off

echo Input a starter number
I need to input number 1 here
echo Input a maximum number
I need to input number 2 here

for /l %%a in (number1,1,number2) do (ping localhost -n 1 >nul
echo %%a)


For you people I guess its really easy, but not for me since I'm still learning.
If you got some tips and such I'm willing to take them too whit joy.


See More: Batch Input Variable

Report •

May 3, 2011 at 12:41:09

Report •
Related Solutions

Ask Question