Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
For /l
Name: AJ (by William Jimenez) Date: November 25, 2008 at 05:20:24 Pacific OS: XP CPU/Ram: Dell
Comment:
I am aware that I'm about to ask what is to all of you the most dumb question you've seen here but for the sake of learning I'm going to do it.
The more I use the FOR command the more uses I find for but,can any one give me a real life scenario of how to use the FOR /L command, other than making the commmand prompt count from 1 to 1000 really fast I do't see how I would use it in real life.
Summary: I am throwing things at this point trying to figure out why I can not set variables inside of my for /l counter. Here is the snippet that doesn't work : set /p startdate=Enter the Start date for log...
Summary: I'm trying to make a batch file in dos, and I can't seem to get a Variable to work as my MAX in a FOR statement, here is my code: SET NumDisks = 5 FOR /L %%i IN (1, 1, %NumDisks%) DO (ECHO Test) If I ...
Summary: for /L %%a in (1 1 2880) do ( echo your task goes here ) ===================================== If at first you don't succeed, you're about average. M2 ...