|
Answer» Hello!
Can i use script like this: Code: [Select]Set INP=%1 Set pref=%2 set outp=%3
FOR %%I IN (%inp%) DO @( FIND "%pref%" %%I>%tmp%\note.tmp FOR /F "EOL=- tokens=1,2" %%t IN (%tmp%\note.tmp) DO @( Set fail=%%~nxI Set fail2=%fail:~0,5%KR%fail:~7% ECHO %%t>>%3%fail2% ) ) What this script do: 1. scan all files like batch*.* (%1) 2. find all rows where exist %2 PARAMETER and otputh to %tmp%\note.tmp 3. read note.tmp and SKIP 1-st and 2-nd row and output %3 folder with earlier scanned file. 4. next input file
But problem is the output file name?! it dosn't work Don't bump threads. Bad manners. Esp. after only a short time!Quote from: Cass on June 11, 2008, 03:40:23 AM But problem is the output file name?! it dosn't work
You need to use delayed expansion for the variables in the loop, fail and fail2. OTHERWISE they will be blank.
|