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: Hi, I have a DOS For loop that goes through a file I named test.txt. Within this file, it contains a series of dates: 20081112 20081111 20081110 ......
Summary: Dear friends, This is a continuation of my previous first post. Please click here I have another problem which i can't understand. The following batc...
Summary: Thanks for reply IVO !!! sorry but again does not work... if I add the ^ : "for %%a in ('pkunzip -c c:\test\%file%^|ssed -n "s/.*\(....*\)..*\(%var%\)...
Summary: Hi, I'm trying to write a command for DOS command prompt that will call an executable and save the results to a text file. So I want to achieve this: ...
Summary: I want to run a for loop in DOS searching for .zip files, cd to that directory that contains that found .zip file, unzip and return to the previous di...
Summary: I recently got hit by a batch virus. (I know I was surprised they even existed anymore). It might have changed it's original name so I am trying to do...
Summary: Do loop does not seem to be exiting properly Example: Do 700 Niter=1,Noiter *** Code *** 700 Continue In debugger, Noiter is equal to 2, a watch sh...
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: I want to get the foldername of the profiles on a pc in a variable to check if there exist a specific folder. The problem is I get spaces at the begi...
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: well i thought 1 would work, but i cant figure out how to get it to iterate from 0001 to 9999 i mean how do i make it go from 0001 to 0009 then 0010 t...
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: 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...
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 count in for loop but did not work. here is my code. set count= for /f "tokens=*" %%s in (external_ip.dat) do ( set /a COUNT+=1 ech...
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: 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: set /a cnt+=1 set var%cnt%=%1 Okay, so set variable cnt as an expression and then add 1 to it. The set var%cnt%=%1 (I am not sure what that does) @ec...
Summary: Hi, I’m making a program designed to send some files to my email account (using blat). I want it to start sending each file, deleting it when it is...
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: 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: Hello, I'm trying to do the following: for /F "tokens=1-2 delims=;" %%a in ('findstr /i "<Caption" "temp"') do ( set /a counter+=1 set /a N+=1 f...
Summary: rem ---------- compare .c file list with .o list --------------- for /f "tokens=* delims=" %%a in (c_list.txt) do ( set pathname1=%%~dpa set filename1...
Summary: Hello, I have this do until loop in my script: '========================================================= Range(cellchoice).Select Do Until Activ...