Summary: Hello, how can i sue a text fiel as the source/set Example FOR %%a in (MyFile.txt) Do Ping %%a Where MyFile.txt is a list of computer names in the fol...
Summary: I've been messing around for a few days now, trying to get a for loop to work to shutdown certain PC's in certain IP ranges in our network. I have a t...
Summary: In C, how can u read values into an array (ex. array[row][col]) and exit from the for loop right after the user types 0 in the 1st column of any row? ...
Summary: I have a file that has 10 strings, each separated by commas (no returns). I am trying to get each of the separate strings (between the commas) to be ...
Summary: You can only exit from a for loop with a goto. Instead of an inner for loop, you might want to consider using FIND, and the whole loop (and goto and ...
Summary: Thanks M2! I originally used a variable for the file path, but the loop didn't work so I thought I would put the whole thing in for testing purposes. ...
Summary: I'm working on a moderately complex batch file. The original requirement was a way to do a remote backup for a user who works from home to ensure ...
Summary: Hi, I need to run a particular se of commands repetatively for some number of times provided by userin for loop. I am doing it this way user input the...
Summary: Hi. I am learning one dimensional arrays in C++ out of a couple books. I noticed that a common way to initialize these arrays was using a "for" loop. ...
Summary: hi thanks a tons for helping me earlier I am stuck with a small problem Thru the following code i am able to create the folders but my problem is tha...
Summary: Hi. There is no need for an array variable in this case. However, if it is required in your assignment you should implement one. But I did not see any...
Summary: I have written a lengthy script for work to remotely install services, remotely kill processes, etc. and am stuck on one thing. On an individual bas...
Summary: I want to be able to perform something to each file of certain type inside a folder. I have this script from something else I've done. for /f "tokens=...
Summary: I have this little script which has a settings file so the batch doesn't have to be edited. echo Drag and drop settings file onto this window then hit...
Summary: BatchFreak, I can see your trying but there are a few things wrong with your script. 1. The for loop only takes the skip, delims, tokens, usebackq and...
Summary: Hi, I have a problem with my batch file. I ran my script to get the next process number from the Num file. Here the problem is that instead the...
Summary: I am taking an elective course in C++ programming, but the instructor gave us ONE week to learn c++, now he is into algorithms and I am so lost. Can ...
Summary: Is there anyone who knows how to create a FOR loop in a batch-file? I have a textfile with some text and driveletters like A: B:....but it could as we...
Summary: Here is the code: for /f %%Q in (machines.txt) do ( ping -n 1 -w 3 %PingThis% IF %ERRORLEVEL% == 0 echo %%Q >> alive.txt ELSE echo %%Q Failed Ping >> ...
Summary: k im new and i just want to make a program that uses for loops to somehow interate and print out every unicode symbol from 0001 to 9999. basically all...
Summary: The following program (below my question) produces the results I want, but I am trying to create a for loop to replace all of the cout statements. Wha...
Summary: I've been trying to get a for loop to display a pattern of decreasing, left-indented characters for about 3 days now. The assignment is to write a men...
Summary: K, im currently learning java and I wanted to make a program that is short and prints all the unicode symbols out in the cmd prompt (preferably on the...
Summary: Hi everyone, I have a bat script to parse a filename out a of a url like so: @echo OFF set file=%1 for /F %%i in (%file%) do call :get_filename %%i go...
Summary: I have a FOR loop in a Batch Script on XP Pro. FOR /L %%A IN (1 1 %engine_instance%) DO ( type %logs_dir%\sim_engine_%%A.log | FIND "Customers Proces...