Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have the following code:

set local enabledelayedexpansion for /f "delims=" %%a in  (\file) do ( 
  SET ='%%a 
  SET s=!s:;'';'=;;%!
  echo !s!
)  >>   \file"

I need apart from the modification, to delete the row if contains 00. So far i have tried to add the following set but is not working.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
150 views
Welcome To Ask or Share your Answers For Others

1 Answer

Does

FIND /V "000"<"TXTFILE.TXT">"NEWFILE.TXT"

or

TYPE "TXTFILE.TXT"|FIND /V "000">"NEWFILE.TXT"

not do what you want?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...