|Sorry, little bit of delay. OMG my boss wants me to do some actual work, the kind of thing she says I get paid for!.... |
Boss gone for rest of day - yippee!
Apologies, I didn't test the updated script as I should have done, boss was having a bad day and harassing us underlings. Please test the following:
for /f "tokens=*" %%a in ('dir /a-d /b camp856*.dat') do (
for /f "tokens=1* delims=^|" %%1 in (%%a) do (
if /i [%%1] equ [ship] (
set /a nbr+=1&&>camp856_!nbr!.dat echo !line!
) else (
echo !line! >>camp856_!nbr!.dat
Now at least I've got to look busy!! Don't hesitate to get back if you have more problems.
Please come back & tell us if your problem is resolved.