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.
Batch File: error with piping+FIND
Name: randomn00b Date: May 26, 2008 at 23:25:54 Pacific OS: Windows XP CPU/Ram: ? Product: ?
Comment:
set rems=!rems! set count=0 FOR /F "tokens=1,2* delims=^" %%a IN (%remfp%) DO ( set /a count=!count!+1 echo count=!count! echo %rems% | FIND "!count!" IF %ERRORLEVEL% LSS 1 (echo %%a) )
INFO: %rems% is a variable containing signle-digit integers in ascending order
%remfp% is a valid file path containing:
'string'^mm/dd/yyyy
Problem: No matter if !count! exists in %rems% or not, FIND is not able to "see" it. If you need clarification, please ask.
Summary: Hi all, I'm writing a new batch file to check the total and free space of certain network drives. It'll run every morning so that when I arrive, I'll have a quick report of the current state of stora...
Summary: I am looking for some help with Batch Program creation. I would like to create a batch file that asks you a question "what would you like to name the folder?" and then that name would be a variable a...
Summary: I did try them. Thank you. Also, I really need a bacth file for this request - purpose (per the title). I created several test scenarios. C:\test\folder1, C:\test\folder2, C:\test\folder3. I ran t...