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
:count

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)

pause


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.

Thanks.
Blaz


See More: Batch Input Variable

Report •


#1
May 3, 2011 at 12:41:09

Report •
Related Solutions


Ask Question